I am unable to fillup the other combo on selected value event of predecessor
combo value. But when i draw a simple html dropdown it does work.
Please help me i am very near to complete the task i dont want to jump to some
other jquery tool.
$("#s5a2").dropdownchecklist({ firstItemChecksAll: true, explicitClose: '<i>...close</i>', onComplete: function (selector) {
// var justChecked = checkbox.prop("checked");
// var checkCount = (justChecked) ? 1 : -1;
values = '';
for (i = 0; i < selector.options.length; i++) {
if (selector.options[i].selected && (selector.options[i].value != "") && selector.options[i].value != "(all)") {
if (values != "") values += ";";
values += selector.options[i].value;
}
}
if (values != '') {
alert(values);
var cuisines = ["Chinese", "Indian"];
var sel = document.getElementById('test');
for (var i = 0; i < cuisines.length; i++) {
var opt = document.createElement('option');
opt.innerHTML = cuisines[i];
opt.value = cuisines[i];
sel.appendChild(opt);
}
}
}
});
Original issue reported on code.google.com by paul.and...@gmail.com on 11 Jul 2013 at 10:27
Original issue reported on code.google.com by
paul.and...@gmail.com
on 11 Jul 2013 at 10:27