We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f90c398 + aea081e commit 1e50ca7Copy full SHA for 1e50ca7
jquery.selectBox.js
@@ -744,7 +744,11 @@ if(jQuery) (function($) {
744
var setValue = function(select, value) {
745
select = $(select);
746
select.val(value);
747
- value = select.val();
+ value = select.val(); // IE9's select would be null if it was set with a non-exist options value
748
+ if(value == null) { // So check it here and set it with the first option's value if possible
749
+ value = select.children().first().val();
750
+ select.val(value);
751
+ }
752
var control = select.data('selectBox-control');
753
if( !control ) return;
754
var settings = select.data('selectBox-settings'),
0 commit comments