小程序怎样获取单选按钮的vaule

小程序怎样获取单选按钮的vaule,第1张

<radio-group class="radio-group" bindchange="radioChange">

<label class="radio" wx:for="{{k7}}" wx:key="index">

<radio value="{{itemarr_guige02}}" bindtap='radio' data-id="{{itemguige_key02}}" checked="{{itemchecked}}"/>{{itemarr_guige02}}

</label>

</radio-group>

// 获取该组件的id

radio:function(e){

thissetData({

guige_key02: ecurrentTargetdatasetid

})

consolelog(ecurrentTargetdatasetid)

},

// 获取用户选择的单选框的值

radioChange: function (e) {

thissetData({

arr_guige02: edetailvalue

})

consolelog(edetailvalue)

},

<form name="form1" method="post" action="indexasp">

<input name="sex" type="radio" value="男" checked>

<input type="radio" name="sex" value="女">

<input type="submit" name="Submit" value="提交">

</form>

indexasp

sex=trim(request("sex"))'这里就是获取单选按钮的值

页面放RadioButtonList存放‘男女’值

sql这样写

string sql = stringFormat("insert into Stuinfo values ('{0}',{1},'{2}')", txtNameTextTrim(), txtAgeTextTrim(),RadioButtonLIst1selectItemText);

<script>

function changOut(obj){

documentgetElementById("out")innerHTML=objvalue;

}

</script>

<input name="fl" type="radio" value="5" onClick="changOut(this)">

玉器

<input name="fl" type="radio" value="10" onClick="changOut(this)">

木器

<input name="fl" type="radio" value="15" onClick="changOut(this)">

陶瓷 

<br>

鉴定费:<span id="out"></span>元

以上就是关于小程序怎样获取单选按钮的vaule全部的内容,包括:小程序怎样获取单选按钮的vaule、asp 如何获取单选按钮组中的值、C#单选按钮获取值!!!!等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/10155755.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-05
下一篇2023-05-05

发表评论

登录后才能评论

评论列表(0条)

    保存