Javascript examples for jQuery:Hide
Show the hidden <p> element with a click of a button.
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("p").hide(); $("button").click(function(){ $("p").show(); });//w ww.j a v a2 s.co m }); </script> </head> <body> <p>This is a paragraph.</p> <button>Show</button> </body> </html>