jQuery hide()

jQuery supports many types of effects, that make the development process easy and user-friendly. Hiding is one of such effects. The hide() method serves this purpose. hide() method is used to hide the selected elements. Example: <!DOCTYPE html> <html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script> <script> $(document).ready(function(){ $(“#hide”).click(function(){ $(“p”).hide(); }); }); </script> </head> <body> <p>Click the button and … Read more