Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,

I wrote a jQuery code but when I click the button it does not response. We need any supported files down load.
HTML
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    $(this).hide();
  });
});
</script>
</head>

<body>
<button>Click me</button>
</body>
</html>
Posted
Updated 20-Feb-12 1:05am
v4
Comments
Sudip Saha 20-Feb-12 6:57am    
Please paste your sample code here
André Kraak 20-Feb-12 7:05am    
Edited question:
Added pre tags
CRDave1988 20-Feb-12 7:10am    
Where u store jquery.js file?

You need to download the jQuery Library[^] and use it as your src.
 
Share this answer
 
Comments
2011999 20-Feb-12 7:10am    
thank u for your support
Rajeev Jayaram 20-Feb-12 13:00pm    
I'm glad it helped you.
CRDave1988 20-Feb-12 7:11am    
If This Answer help u mark this as answer.
Rajeev Jayaram 20-Feb-12 13:01pm    
Thanks for your comment.
Add jquery.js in your project
 
Share this answer
 
Hi,

As other two answers says: All must work, if your jquery.js file exist...
You can check here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900