不能解雇单选按钮 [英] not able to cheked radio button
本文介绍了不能解雇单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的HTML
this is my html
<ul>
<li id="117184normal" class="statusDefaultAns">
<a href="#">
<h2>
<input quiz-option="multiple-radio" id="117184" type="radio" name="quiz-radio" res="117184"/>
</h2>
</a>
</li></ul>
和使用js代码
and using js code
function Select(id) {
var newid = id;
$("#" + newid).attr('checked', 'checked').button("refresh");
}
onclick我正在调用此方法,但我无法检查单选按钮。
with onclick i am calling this method but i am not able to checked radio button.
推荐答案
( # + newid).attr(' 选中',' 已选中')。按钮( 刷新);
}
("#" + newid).attr('checked', 'checked').button("refresh"); }
带有onclick的
我正在调用此方法,但我无法检查单选按钮。
with onclick i am calling this method but i am not able to checked radio button.
这篇关于不能解雇单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文