pkpfrench / dropdown-check-list

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

Add forceRadioGroups #262

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, i have a suggestion to extend the plugin.
Instead of having a unique radio group, i was looking for different radio group 
for each optgroup.

So i made a simple modification but it can be improved.
Search "forceRadioGroups" in the attached file.

I hope you can add this feature in your official release.

Bye Bye

Original issue reported on code.google.com by gioggi...@gmail.com on 15 Aug 2012 at 11:29

Attachments:

GoogleCodeExporter commented 9 years ago
Interesting idea...

Just to clarify -- you still want the field to act like a multi-select (in 
terms of values submitted by the form), but the user is restricted to just one 
selection from each group.  Is this correct?

Also, are you trying to 'force' a selection from each group?  Is there a 
default selected in each group?

Original comment by womohun...@ittrium.com on 15 Aug 2012 at 1:26

GoogleCodeExporter commented 9 years ago
Yes, it's correct.
My case:
- I have 3 groups and I disable the second and the third if a specific option 
is selected. 
- I have a default selected value for each group... an empty value (value="").
- I don't submit any form, I get values through jQuery(mymultiselect).val() and 
I send them using ajax.

Original comment by gioggi...@gmail.com on 15 Aug 2012 at 1:52