在Ajax中使用RadioButton [英] RadioButton Use in Ajax

查看:203
本文介绍了在Ajax中使用RadioButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何使用Jquery在AjaxControl中检查是否已检查GroupRadioButtons天气.Plz告诉我

感谢



Hi How to check the GroupRadioButtons weather checked or not in AjaxControl using Jquery.. Plz Tell me

thanks

推荐答案

这与单选按钮无关,这与jQuery通过attr属性处理属性值的方式有关:

假设您的HTML中有这个
This is not about radio buttons specifically, this is about how jQuery handles attribute values — via the attr property:

Assuming in your HTML you have this
<input type="radio" id="radioId">Some radio button</input>



您可以检查是否已使用以下JavaScript选中了此单选按钮:



you can check up if this radio button is checked using this JavaScript:

if (


(' #radioId').attr(' 已选中'))){{span class ="code-comment">/* ... */}
('#radioId').attr('checked'))) { /* ... */ }



—SA



—SA


这篇关于在Ajax中使用RadioButton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆