Kendo UI Panel Barに分割されたフォームがあります。最初のパネルには、テキストが入力されたときに、現在表示されておらず、その下の折りたたまれたパネル内にあるチェックボックスをチェックするフィールドがあります。
私の問題は、チェックボックスがチェックされないことです。チェックボックスが表示されていないときに無効になる方法についての投稿をいくつか読みました。これに対する回避策はありますか?
function Validate(uid) {
if ($("#SomeNumber_" + uid).val().length > 0)
{
$("#MyCheckBox").attr('checked', true); //This checkbox is display:none at the time this is set
//Also tried these, but they didn't work:
//$("#MyCheckBox").click();
//var myCheckBox= document.getElementById("MyCheckBox");
//myCheckBox.checked = true;
}
}