N
N
Nick Bukovskiy2017-09-12 16:33:21
Laravel
Nick Bukovskiy, 2017-09-12 16:33:21

How to add jquery script to form in laravel?

I have a part of the project responsible for adding information from a form. The form has required fields. It is necessary that they are highlighted in red if they are not filled. It needs to be written in jquery. The question is where should I write my code?
jQuery itself is in the project. (The form page is part of the template, not a complete document)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-09-12
@sonterix

connect via asset or whatever you have in Laravel the script.js script,
in it write the form field handler by its id
, everything is
sure at the request " js form validation laravel " you can find ready-made solutions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question