jquery slidetoggle in pure javascript code example Example: jquery slidetoggle $("button").click(function(){ $("p").slideToggle(); });