02 Run jQuery in WordPress



source code

Press Text will disappear.

</pre>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("p").click(function(){
    $(this).hide();
  });
});
</script>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>

Demo


If you click on me, I will disappear.

Click me away!

Click me too!


Leave a Reply