Jquery program

i am new to jquery. i am running one simple jquery program.
below is the code…


<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    $("p").hide();
  });
});
</script>
</head>

<body>
<h2>This is a heading</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button>Click me</button>
</body>
</html>

i am not getting what src=“jquery.js” will contain

Do you have the jQuery framework in the same location of your HTML file? If you don’t a simple solution is to use jQuery’s or Google’s CDN servers.

http://code.jquery.com/jquery-latest.min.js

means i need to keep them in one folder both the below html program and
jquery-latest.min.js right …
where is the location to be kept…

Your script tag needs to look like the following…

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>