表单提交单选框

来源:互联网 发布:飞利浦x830软件 编辑:程序博客网 时间:2024/05/20 11:20
<input type="radio" name="storeLocation" value="1" onclick="changeStoreLocation(this.value);">
<input type="radio" name="storeLocation" value="2" onclick="changeStoreLocation(this.value);">
 <input type="hidden"  id="storeLocation" value=""/>

function changeStoreLocation(value){
    $("#storeLocation").val(value);

}

1 0
原创粉丝点击