Register now or log in to join your professional community.
Please make clear in which language you need to get the indexed value .Are you tring to get on the server side or cleint side ?
Thanks
Ajmal
I think you mean jQuery although you didn't clarify.
You can use this to get the zero based index:
$(":radio:checked").index()
You may combine it with any parent selectors. For example:
$("form :radio:checked").index()
$(".checkout :radio:checked").index()
$("#registerForm").find(":radio:checked").index()
References:
http://api.jquery.com/radio-selector/
http://api.jquery.com/checked-selector/
http://api.jquery.com/index/
Index!!!!!!
as I know Radio Btns (RB) are grouped...
so let's say you have3 RB, all of them should have the same group, and each of them has a value and ID.
You check which one is checked and you get the value.
Or maybe am not getting your question correctly....