Opened 14 years ago
Closed 14 years ago
#4285 closed bug (invalid)
No result and No error onclick (is browser detecting jQuery or not)
Reported by: | laxmikanth.s | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I was unable to see output, no action on click on anchor tag and there is no javascript error also. Tried in IE, Firefox and chrome too.
here is the code i tried
<html> <head> <script src="jquery-1.3.2.min.js" type="text/javascript"></scirpt> <style type="text/css"> #box {
background:red; width:100px; height:100px;
} </style> <script type="text/javascript">
$(function(){
$('a').click(function(){
$('#box').fadeOut();
});
});
</script> </head> <body> <div id="box">
</div>
<a href="#">Click Me</a> </body> </html>
I made sure jquery-1.3.2.min.js and html file are @ same place.
If that is a copy/paste from your file, you've mistyped the closing script tag. It's best to double-check these problems on a forum before opening a bug. (At least it's best for me...)