I am new to JQuery, I do not know Why this simple JQuery does not work in Chrome ,FF and to my surprise works on IE6.
The simple idea is that when i click on the Div i should get an alert
<!DOCTYPE html>
<html>
<head>
<title>Page Chrome Test</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<style type="text/css">
.divcls { width:100px; height:100px; background-color: black; }
</style>
</head>
<body>
<script type="text/javascript">
jQuery(document).ready(function(){
$(".divcls").click(function(e){
alert('Hi');
});
})
</script>
<div class="divcls">
</div>
</body>
</html>
I was about to do invasive things like unintall/reintall FF,Chrome
The suggestion of @@scrappedcola saved me.
so here is the code