waseem02 / jquery-asmselect

Automatically exported from code.google.com/p/jquery-asmselect
0 stars 0 forks source link

Filtering selectable options... asmselect will not show updated options. #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have a javascript function and two ASMSELECT boxes

The javascript function is fired from the "onChange" event of the first 
asmselect box.

The onChange event will take the selected value(s) of box number 1 and filter 
the available options in box number 2.

When this takes place everything works on the hidden original element, but NOT 
on the asmselect element.

Basically it will still show you the items that were removed from the multiple 
select, and when you select it all it gives you is a blank.

Lets walk through the screen shots attached again so you all can understand 
better:
ss1.gif:
I am going to select this item, when I do the select box I am pointing to in 
the image will be filtered. most of the options in it will no longer exist.

ss2.gif:
When I go to chose an item, I see that it never got filtered out, and if I 
select it, it is blank.

I can not find a way to remove and then add the asmselect functionality so I 
can basically remove, edit select, then add back to the page.

I also was looking for a way to simply "refresh" the list so it grabbed new 
items from the hidden multiple select.

Original issue reported on code.google.com by mark.bad...@gmail.com on 7 Dec 2011 at 5:02

Attachments:

GoogleCodeExporter commented 8 years ago
I'm having the same issue, did you find a workaround for this?

Original comment by paul.sij...@gmail.com on 25 Oct 2012 at 7:24

GoogleCodeExporter commented 8 years ago
Try as I may, no I could not.  I ended up going with a different plugin called 
"Chosen" by Harvest.

Works like a dream:

http://harvesthq.github.com/chosen/

Original comment by mark.bad...@gmail.com on 25 Oct 2012 at 11:51