RajeshChaudhary345 / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

disable options when another is checked #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Okay, this isn't a defect or enhancement. It's really just a question, but 
couldn't see the obvious place to ask this, so I'm asking here...

All I want to do is disable an option when another is ticked (whilst the 
dropdown is down). Some options are mutually exclusive, but I don't want to 
grey one out until the other has been chosen. It looks like this may be 
possible using this from your demo page:
-------------
$("#s1").val(...) // do something to the original select, for example, changing 
which items are selected
$("#s1").dropdownchecklist("refresh");
-------------
but I can't get it to work. Is is possible? Any help/tips/examples very much 
appreciated.

Great work, by the way!

Original issue reported on code.google.com by jjne...@gmail.com on 19 Oct 2010 at 2:07

GoogleCodeExporter commented 8 years ago
The 'test' page 
http://dropdown-check-list.googlecode.com/svn/trunk/doc/ddcl-tests.html as some 
additional examples and may help you.  

Since you are looking for rather arbitrary functionality about what is 
enabled/disabled when, I do not see a way to turn this into a standard feature. 
 I am afraid you are stuck coding your own custom javascript.

Original comment by womohun...@ittrium.com on 14 Dec 2010 at 8:52

GoogleCodeExporter commented 8 years ago
Hay ho, thanks for replying.

Original comment by jjne...@gmail.com on 14 Dec 2010 at 9:45