I’m having a bit of trouble getting my form validation to work.
As of right now, it will submit if there are empty fields.
I’m trying to get it so that it won’t submit if there are empty fields.
The catch is that there are a dynamic number of input fields. The user can create new ones (up to twenty).
They all follow the rule of where they are named ‘NAME’+i (so the first field is NAME1, second is NAME2, etc.)
I’ve looked into things like this, but I just can’t get them to work.
I’m using jQuery.
Take a look at this link it might help you
all input field validation through single/minimum line on code with jQuery
and also you cans use the below to check for blank fields…
hope this helps….