Javascript syntax error


<script type="text/javascript" src="js/jquery-1.4.2.min.js"> </script>

<script type="text/javascript">
var hdnClassificationNameElements;
var hdnIsApproveEnabledElements;
[B]$(document).ready(function(){[/B]
hdnClassificationNameElements= $(".hdnClassificationNameClass");  //All elements with class="class3"
hdnIsApproveEnabledElements= $(".hdnIsApproveEnabledClass");  //All elements with class="class4"
});
 
</script>

browser says Syntax error at BOLD Line , char 1 , Syntax error

I don’t see any error there . Do you see anything wrong here ?

I can’t see a problem with it. If you’re using IE as your browser for testing this, I’d strongly urge you to use something else. IE’s javascript errors are notoriously unhelpful.

You’re better off using something like Firebug (with Firefox). Perhaps the error is to do with something else, but you need to get a clearer error before you can see what the problem is.