Hello,
I am using the function $("sele...@name='bb']").change() to access
the select box value in my code. When i tried to load the page i am
getting the following error message in my firebug.
[Exception... "'Syntax error, unrecognized expression:
[...@name='bb']' when calling method: [nsIDOMEventListener::handleEvent]"
nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location:
"<unknown>" data: no].
Plz see my code:
##################################################
<script>
$(document).ready(function(){
$("sele...@name='bb']").change(function () {
var str;
str=$(this).val() ;
alert(str);
}); });
</script>
</HEAD>
<BODY>
<select name="bb">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</BODY>
#################################################
In the above code i have used jquery-1.3.2.js and even tried with
jquery-1.3.2.min.js.
But the same above code is working fine with jquery-1.2.6.min.js and
jquery-1.2.6.js.
Can anyone tell me why its happening in jquery-1.3.2. Did the code
differs in both versions?
Thanks
Sumanth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---