1 Answer
1

$(".string").each() should iterate through all elements with class string. Inside it tou can put some if that will be checking values of inputs ( if ($(this).val == ""){}), and you can store fieldnames inside some array or string.

and how call fieldnames array in this function?
–
Arman SaparbekovFeb 15 '12 at 10:47

Depends on your code - if you have every field in separate div, in which you have span for field name and input, then you can use $(this).parent().children('span').innerHTML. Or you can have set name attribute of input in which case you could use $(this).attr('name').
–
Uriel_SVKFeb 15 '12 at 11:26

Oh. I do not know how to create the array using jQuery. Thanks for help.
–
Arman SaparbekovFeb 15 '12 at 11:27