
Hide And Show in Jquery
In jQuery, the .hide()
and .show()
methods are used to hide or display elements on a web page � super handy for creating dynamic interfaces without reloading the page!
? 1. .hide()
Method
? Syntax:
$(selector).<p <p <!DOCTYPE html>"#hideBtn").click(function(){ $("#para").hide(500); }); $("#showBtn").click(function(){ $("#para").show(500); }); $("#toggleBtn").click(function(){ $("#para").toggle(500); });</script></body></html>