javascript - How to select all form elements which are not in a hidden parent in Jquery? -


i need 1 jquery select line/selector (due js plugin limitation) find inputs (hidden type inputs !!! i.e. '<input type=hidden />') not hidden due 1 of parent, tried 1

:parent:not(hidden) input 

but doesn't work (should return input2 , input3 only).

here jsfiddle showing issue: jsfiddle demo

when parent hidden, descendants hidden. use :visible pseudo-selector

$('input:visible') 

demo

update

to find inputs (hidden type inputs !!!

$("input:visible, input[type='hidden']") 

demo


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -