javascript - Show hide available content -
i have content in post. want hide until click link in post. have yet build site, idea.
- the first heading
- the second heading
- the third heading
- the fourth heading
/* content following hidden until clicked link above. / / content available wrapped in div tag, not loaded site. */
- content 1 show click "1. first heading"
- content 2 show click "2. second heading"
- content 3 show click "3. third heading"
- content 4 show click "4. fourth heading"
can use css or ajax / jquery create effect?
you using following jquery code:
$(document).ready(function(){ $("#hide").click(function(){ $("p").hide(); }); $("#show").click(function(){ $("p").show(); }); });
here complete demo how can hide , show element click event.
Comments
Post a Comment