views:

335

answers:

1

I'm using the jQuery dropdown checklist plug-in, found here, so far everything works fine.

However i am having problem disabling it. we have a checkbox that controls the checklist. if checked then the checklist is enabled, if not checked then disable it.

$("#s1").dropdownchecklist("disable");
$("#s1").dropdownchecklist().attr("disabled", "disabled");
$(".ui-dropdownchecklist").attr('disabled', 'disabled');

plus other variations and nothing is working. anyone has a solution? i am sure it can't be that hard! thank you!

+1  A: 

sorry i clear the cache and now this works.

$("#s1").dropdownchecklist("disable");

i did check firebug and there was no error before.

thank you for taking the time.

mango