Bineesh  Viswanath

Bineesh Viswanath

  • NA
  • 1k
  • 777.3k

Line Hiddding Function in JQuery

Sep 6 2013 12:55 AM
Sir, I need your help in describing the function below:-

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function()
{
  $("p").click(function()
{
    $(this).hide();
  });
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>


Please Give me the Explanation of these:-

1) why we placing '$' ?

2) document stand for what?

3) what is the use of '.ready'?

4) Is closing brace would be in ' }); ' form?


Answers (1)