jQuery validate only the elements which are visible? -


in html page have 24 fields have class = "emi".

out of these 24 0 , 6 ,12 ,18 or 24 of them can visible based on value of dropdown on page.

now have perform validations on elements visible.

i have used jquery's .hide() , .show() hide , show these elements

try this..

// array of visible controls code var elementstovalidate = $('.emi:visible'); //or $('.emi').filter(':visible'); // perform validation using elementstovalidate 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -