I have some simple markup:
<table>
<tr>
<td>Menu Item</td>
</tr>
</table>
<div>
<table>
<tr>
<td>Menu Item Sub Menu</td>
</tr>
</table>
</div>
Im currently hiding the DIV, however if you click the in the first table I want it to .show() the Table in the div.
Does that make sense?
I should really get my head around, parent(), next(), find()
If you really don’t want to add an
idto thedivandtable, you can do the following. I usetoggle()instead ofshow(), but replace withshow()if you want.But, i’d add an
idto thetableanddiv, then a click event.Or if you want to use
next(), try this for the click function: