Select and hide the element with id="test". - Javascript jQuery

Javascript examples for jQuery:Hide

Description

Select and hide the element with id="test".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("#test").hide();
});/*w  ww.j  av  a2 s .c o m*/
</script>
</head>
<body>

<p>This is a paragraph.</p>
<p id="test">This is a paragraph with id="test".</p>

</body>
</html>

Related Tutorials