View Full Version : Unset a value in multiselect combo
3 Sep 2012, 5:48 AM
Is there a method to unselect a specific value of a multiselect combo.
In other words, I have a default value selected and when the user select another value, the default value should be unselected.
3 Sep 2012, 6:50 AM
What does getValue() returns an array? Then pop the default value out of that array and set the array again with setValue()
var values = combo.getValue();
//some code here to pop the unwanted values out
4 Sep 2012, 11:19 PM
you may use clearValue() for your combo to clear default value.
check this for detailed information:-
5 Sep 2012, 3:54 AM
The problem with getValue is that I get all the values selected in the combo however I only need the value that has been clicked.
Is there a method to do that, can't find it in the API.
5 Sep 2012, 3:55 AM
put multiSelect:false in your config
5 Sep 2012, 3:58 AM
but I need the multiselect: true.
What I want is to get the value that has been clicked and not all the value selected in the combo.
5 Sep 2012, 4:16 AM
That the last one in the list ;)
5 Sep 2012, 4:27 AM
Still a problem if I use the last value in the list. I also have to deselect a value. So it won't be in the list anymore and I don't know which value I have deselect.
Powered by vBulletin® Version 4.1.5 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.