how to disable a jquery dropdown checklist plug-in?

Posted by mango on Stack Overflow See other posts from Stack Overflow or by mango
Published on 2010-03-16T15:14:21Z Indexed on 2010/03/16 17:31 UTC
Read the original article Hit count: 407

Filed under:
|
|

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!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dropdown