Click here to Skip to main content
16,021,288 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
How to write javascript for selectedindex changed event of radiobuttnlist?
Posted

Hi, in js, use onChange event for radiobuttonlist.

C#
rbl.Attributes.Add("onChange", "javascript:JSFunction();");
 
Share this answer
 
i think you have to add change event for all items in radiobuttonlist like following

C#
foreach (ListItem Li in radiobuttnlist.Items)
         {
             Li.Attributes.Add("onclick;", "myfunction(this);");
         }
 
Share this answer
 

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