27
rated 0 times
[
28]
[
1]
/ answers: 1 / hits: 44741
/ 10 Years ago, sun, may 4, 2014, 12:00:00
I have the following structure:
<li id=0 class=instruction>
<div class=row1>
title
</div>
<div class=row2 details hidden>
details
</div>
</li>
css for hidden is: display: none
I'd like when user clicked the instruction, then show the details div.
$(document).ready(function () {
$(.instruction).click(function(e){
$(e).find('.details').removeClass(hidden);
});
});
Tried to implement something like above, but doesn't work. any idea?
More From » jquery