A super simple HTML jQuery JavaScript to hide a text
First Published: .
Some of my students are working on the Front End part, so I help them with JavaScript and jQuery.
Even if I’m super strong in Back End I’m not bad at JavaScript Front End.
So this super simple code will hide the paragraphs <p> using the hide animation from jQuery.
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> </head> <body> <p>Text to hide</p> <input type="button" id="button" value="Hide the text" onclick='$("p").hide(1000);'> </body> </html>
I think learning should be taken by steps, and starting by the most simple.
Rules for writing a Comment