+ 1
wich one to use for form validation javaScript or jQuery ?!?!
javaScript jQuery
3 ответов
+ 8
Both, but stay away from framework if your project is small, they are not necessary.
0
you don't need jQuery for just form validation.
use HTML5 "required" attribute with appropriate input types. although you need javascript for complex validation
0
There is nice tutorial for form building, validating and processing on w3schools.com. However, it is shown for backend purposes (fetching data from db) so a lot of it is done in php.
For frontend only, if it is just form validating you can do it without framework as someone alredy mentioned.