0
我想设置一个单选按钮活动与标准的jQuery功能就像在这个演示,如果你做一个onclick事件。如何在jQuery单选按钮组中设置活动的单选按钮
http://jqueryui.com/button/#radio
我想要做的onclick不但不能点击,我想在一个调用的函数做到这一点是相同的。
试过,但它不工作的权利:
function checkradio() {
$("#labelRADIOVU").button("enable");
$('#RADIOVU').prop('checked', true);
//alert($("input[name='']:checked").val())
document.getElementById("labelRADIOVU").style.color = "white";
document.getElementById("labelRADIOVU").style.backgroundColor = "red";
//document.getElementById("RADIOVU").checked = true;
};
非常感谢,这就是它的工作方式! !有时你不会净知道所有..它的足够知道一个替代品;-) –