First have link to jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script>
Then you can use jQuery hide & show functions, remember to put these functions AFTER the target class or id, otherwise it will not have any effect.
<script>
$(".1class_name").hide();
$("#1id_name").show();
</script>
You could do all P tags ("p"), one class (".this-class") , or one id ("#one_id")
From w3schools.com
No comments:
Post a Comment