Javascript examples for jQuery Method and Property:hide
Run callback function after the hide effect is completed
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").hide("slow", function(){ console.log("The paragraph is now hidden"); });// w w w.ja va 2 s. co m }); }); </script> </head> <body> <button>Hide</button> <p>This is a paragraph with little content.</p> </body> </html>