Follow-up on: How to get the children of the $(this) selector?
Does not work for me somehow.
html
<h4>
Sometext
<h3>
Another text
</h3>
</h4>
css
h3 {
display: none;
}
js
$('h4').live('click', function() {
$(this).children('h3').toggle('slide');
});
EDIT: There are multiple items like h4. http://jsfiddle.net/teKwN/4/
Please help. Thanks.