Showing specific range of years , months and days using bootstrap datepicker

Am working on an application whereby am using bootstrap Datepicker to display the date. Am trying to show dates to the user whereby h/she should be above 18 years and below...

Accessing Scss variables in Javascript?

Is it possible to access sass variables in javascript? I'm currently using Laravel for a project, but I'm using Jquery/Js without Vue. Is it possible to access variables fr...

How to count in Jquery each function

So here is my Jquery, $.each(shoppingCart, function(k, v) { console.log(v); }); On each select item for the shopping cart, it...

Unexpected identifier on javascript import statement

Hello I'm using this documentation below to display google analytics data on my website...

Axios/Ajax HTTP patch requests with file not working

I'm using Axios HTTP requests however, I've also tried using jQuery ajax and getting the same result let files = e.target.files || e.dataTransfer.files;...

Image Handling In React

Hi guys, I just started using react with my laravel apps, and I'm trying to use images inside my components. I have so far learned that there are two ways to do so...

How to "export" my library

Hello, i wonder how do you "export" your code ? For example i've a notification script. I want to share it with people but I want them to be able to use th...

Document keyup on contenteditable div

<div class="contenteditable" contenteditable=true> Text content <a href="#">Link content</a> </div> <script>...

Can you help me with this ajax request?

Hey, I see the site has been overhauled, hopefully I can still ask for help. I have a feature on my website HardTeckno.com and it's a +1 button on each post. Since I am o...

Play all videos in the array

I am trying to make a playlist from html video tag and here is what I have so far. var nextVideo = ["public/playlist/1.mp4", "public/playlist/2.mp4&qu...

Where to put javascript?

I have a very simple javascript for changing colors of the navbar. My question is where in laravel do I put javascript? I tried in app.blade.php in the header and before...

Taking TWO variables from inside a foreach and pass to a modal

I am building an "images view" for users in my app. The number of images are variable. First I show an small thumbnail like this: @foreach ($images...

Big Problem with jscroll.js

I integrated jscroll into my project and it works great too. The data are loaded and displayed when scrolling. The problem is, when loading new data is displayed, no...

Remove specific value from json and add the array to list

So I want to be able to remove all the json with a condition and add the rest to the ul li. Here is what I have so far which does not seem to work...

How to add a JS variable into a hidden form value

I need to get the total amount of the radio button to pass into a hidden value so I can then pass it to stripe. I can get the total amount to render on the page, but I cann...

Date/Age Validation

What is the best way to validate date input, so that the age is over 18 years from the current date using JavaScript?...

Google Map Api

I'm using google map api to auto populate an address. So I have a form which requires 2 different addresses, so how do I go about auto populating the next address like the...

image.onload()

I have this code but the bool inside the onload is not set except after everything finishes (function () { var width, height;...

Detach and re attach an element JQuery

So I have a live search which I am working on. And I was wondering why my detach() won't bring back the attachment after removing it. Basically the problem for...

Pattern-visitor.js - Uncaught TypeError

Hi, I have no idea where this error is coming from: Uncaught TypeError: Cannot read property 'toString' of undefined at Object.<anonymous> (pattern...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels