jQuery Selector Help Next Class -


im stuck on , although there 1000 different ways select need, cant going.

in html below, <tr class="hide"> hidden, , when clicks link in span, want slidedown.

i've tried

$(this).parent().next().slidetoggle('slow'); 

and bunch of other similar things, no love. seems because hidden tr element down 2 levels cant select it.

mind you, there multiple of these on page, needs next 1 in line slides down, cant $('.hide') select it.

can help?

heres html

<td>     <span class="details">details</span> </td> </tr> <tr class="hide"> <td></td> 

try to

$(this).closest('tr').next().slidetoggle('slow'); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -