jQuery to hide current showing text in HTML
$(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); jQuery Examples <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script> /*hide all <p> tage content*/ $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); </script> </head> <body> <p>If you click on me, I will disappear.</p> <p>Click me away!</p> <p>Click me too!</p> </body> </html>