Possible Duplicate:
Firefox doesn’t fire $(document).ready(function() {
Below code not prompt message box when i used Firefox and i’ve tested the below code with IE and Chrome, it does prompt message box. Anyone experience this?
<html>
<head>
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/jscript" ></script>
<script type="text/jscript">
$(document).ready(function () {
alert('test');
})
</script>
</head>
<body>
</body>
</html>
Change both script tag’s type attribute to
type="text/javascript"instead oftype="text/jscript"