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')
update
to find inputs (hidden type inputs !!!
$("input:visible, input[type='hidden']")
Comments
Post a Comment