Response title
This is preview!
child-1
div and then replace with another div child-2
when every time that clicking on parent title.<div class="parent">
<h2>Title One</h2>
<div class='child_1'>paragraph 1</div>
<div class='child_2'>paragraph 2</div>
</div>
<div class="parent">
<h2>Title Two</h2>
<div class='child_1'>paragraph 1</div>
<div class='child_2'>paragraph 2</div>
</div>
and my jquery also is like below:
This work perfectly but when I click in one element other element also change. |
© 2013 jQuery Foundation
Sponsored by and others.