Skip to content
Advertisement

Tag: laravel

javascript – laravel reset form

My form reset button doesnt reset my form. I added a class for my dropdowns to be hidden unless theres a change in select. The current behavior is clicking the reset button will only reset its values but doesn’t hide the supposed to be hidden dropdowns. my reset button script i used Can’t find any docu about resetting a form

Read cookies in Laravel Blade created in JS

I am beginner webdeveloper. I make my project in Laravel 7 and jQuery. I create cookies in JavaScript (jQuery) and I need read it in Laravel Blade. I have this code: This code create cookies correctly. Now I try check value in Laravel Blade: But it’s not working – laravel can’t read vale from cookie 🙁 How can I repair

Ajax ignoring URL

I try to make an ajax request through JQuery triggering an onClick event, but when it sends the AJAX request I receive: PATCH http://localhost:8000/courses 405 (Method Not Allowed) (Current page) Because it doesn’t get the URL with the id HTML JQUERY + AJAX WEB.PHP ROUTES EDIT If I use POST instead of PATCH in type AJAX gets the id. Found

Datepicker on “focus” event in Laravel

I have a datatable where I have the option to edit the date of every record in that table, so I need to use “document on focus” event to get all my datepickers to work. The problem here is that my datepicker only works when I click on the input, if I click in the “icon” it doesn´t work. This

How do I change the date format?

This is my js function to fetch data from database. The data is being dynamically appended data to my modal popup from the js page. Currently the date format shown, is “2018-06-09 15:43:44″(as stored in database). I wish to change the date format that is being displayed to dd-MMM-YYYY. Is there a way to achieve this? Answer You can easily

Advertisement