I am trying to get value of radio group with name managerelradio
. My html code for this radio group is.
<label><input type="radio" name="managerelradio" value="Yes" id="Add">Add</label>
<label><input type="radio" name="managerelradio" value="No" id="Remove">Remove</label>
and Jquery for this is..
var manageradiorel = $('input[name = "managerelradio"]:checked' , '#managechildform').val();
alert(manageradiorel);
its showing me undefined.
Though I have also tried it as.
var manageradiorel = $('input[name = "managerelradio"]:checked').val();
alert(manageradiorel);
But still I am getting undefined value.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…