using jquery you can do that with below code snippet:
Suppose you have:
Diya [name="bolly",value="diya"]
Kareena [name="bolly",value="kareena"]
Katrina [name="bolly",value="katrina"]
Then,
var sel_val = $('input:radio[name=bolly]:checked').val();
You will get: sel_val = "diya"
For more reference:
http://stackoverflow.com/questions/986120/how-to-get-select-radiobutton-value-using-its-name-in-jquery
0 comments:
Post a Comment