hi I have a radio button list inside a repeater , the repeater is inside a Datalist.i need to get the value of the selected radio button. Also I need to select only a single radio in entire datalist using javascript.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it with pure client side JavaScript regardless of Repeater, DataList or anything.
Have this code in your page:
Then to get the selected value call the function passing the
nameof the radio buttons group – all radio buttons with same name considered a group and the browser will let the user select only one of these.Live test case: http://jsfiddle.net/yahavbr/BL9xJ/