jquery - prevAll on hidden elements -
hi have hidden div within hold other divs
example
<div style="display:none"> <div id="o-1">...<div> <div>...<div> <div>...<div> <div id="o-2">...<div> <div>...<div> <div>...<div> <div id="o-3">...<div> <div>...<div> <div>...<div> </div> i trying prevall of div id="o-3" id starts whith o- in above illustration prevall of o-3 o-2 , o-1
the problem because wrapper div hidden can preall
any suggestions welcome
i don't seem have problems selecting hidden elements.
http://jsfiddle.net/u2ypb/2/
$.each($("#ho3").prevall(),function(idx,div) { log($(div).attr("id")); }); jquery jquery-traversing
No comments:
Post a Comment