请问各位大佬 fieldset 怎么获取其中选中的值?
傲雪_ 2018-02-07 03:52:49 <div class="star-rating">
<fieldset id="test">
<input type="radio" id="star5" name="rating" value="5" /><label for="star5" title="Outstanding" value="5">5 stars</label>
<input type="radio" id="star4" name="rating" value="4" /><label for="star4" title="Very Good" value="4">4 stars</label>
<input type="radio" id="star3" name="rating" value="3" /><label for="star3" title="Good" value="3">3 stars</label>
<input type="radio" id="star2" name="rating" value="2" /><label for="star2" title="Poor" value="2">2 stars</label>
<input type="radio" id="star1" name="rating" value="1" /><label for="star1" title="Very Poor" value="1">1 star</label>
</fieldset>
</div>
请问一下怎么获取选中的值?