怎样才能得到单选框的值?
我有一组单选框
<input type="radio" name="subject1" value="A">
<input type="radio" name="subject1" value="B">
<input type="radio" name="subject1" value="C">
<input type="radio" name="subject1" value="D">
如何得到所选中的单选框的值?
subject1.value读出来是undefined;该如何读到value的值?