我有这个代码:
<input type="radio" name="pay" id="payid" value="banktransfer"> Bank Transfer <br/>
<input type="radio" name="pay" id="payid" value="paypal"> PayPal <br/> <br/>
我尝试:
var sample = $('#payid').val()
alert(sample);
为什么我还有banktransfer
?(不管选择的输入)?