Posts

Showing posts from February 9, 2019

JQuery.Validate only validates first field [duplicate]

Image
0 This question already has an answer here: validating multiple textbox having same name with jquery validator validates only first input 4 answers .valid() only validates first input with jQuery Validation plugin 1 answer I've been struggling all day with a JQuery validate issue. Where it only validates the first field. I've managed to reproduce it here: $(document).ready(function() { $('#go').click(function() { console.log('go clicked'); if ($('#detailsForm').valid()) { alert('if you see this then the form is valid.'); } });