Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
$(document).ready
(
$("input[@name='ctl00$ContentPlaceHolder2$RadioButtonList1']").change(
function()
{
alert('Test');
}
);
);

is my code. When i execute the .aspx page i am getting exception Expected ')' .
Posted
Updated 20-Jul-10 2:14am
v2

There are couple of errors here. Main thing is you have not followed the syntax correctly.

Try this:
JavaScript
$(document).ready(function() {  $("input[@name='ctl00$ContentPlaceHolder2$RadioButtonList1']").change(function() {
                alert('Test');
            });
        });
 
Share this answer
 
v2
u included jquery.js??? thats the first thing you need to include while using jquery.
 
Share this answer
 
Comments
Sandeep Mewara 20-Jul-10 8:19am    
Reason for my vote of 1
Well, had that been a jQuery.js error then there would have been totally different error!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900