/ Published in: jQuery
Show/hide an paragraph when you click on the h2, suppose you have:
Designer infoLorem ipsum dolor sit amet.
You can show/hide the paragraph with the code below.
Expand |
Embed | Plain Text
$('h2').click(function() { $(this).next().toggle('slow'); })
You need to login to post a comment.
