I have two checkbox lists and when any checkbox from any two list is checked i call the method through this event
$("input[type='checkbox']").change(function () {
var val = $(this).val();
if (this.checked) // if changed state is "CHECKED"
{
MainClass.onLayer(val);
// do the magic here
} else {
if (val != undefined) {
MainClass.offLayer(val);
}
// alert("false");
}
});
});
So now the problem is need to call separate methods for the two checkbox lists?How can i do that?
Aucun commentaire:
Enregistrer un commentaire