Commit d4dbc81f authored by David Stutz's avatar David Stutz

#205

parent 096a1d08
...@@ -1390,11 +1390,11 @@ $("#multiselect").multiselect('dataprovider', data); ...@@ -1390,11 +1390,11 @@ $("#multiselect").multiselect('dataprovider', data);
onChange: function(option, checked) { onChange: function(option, checked) {
var values = []; var values = [];
$('#example40 option').each(function() { $('#example40 option').each(function() {
if ($(this).val() != option.val()) { if ($(this).val() !== option.val()) {
values.push($(this).val()); values.push($(this).val());
} }
}); });
alert(values);
$('#example40').multiselect('deselect', values); $('#example40').multiselect('deselect', values);
} }
}); });
...@@ -1803,11 +1803,11 @@ $("#multiselect").multiselect('dataprovider', data); ...@@ -1803,11 +1803,11 @@ $("#multiselect").multiselect('dataprovider', data);
onChange: function(option, checked) { onChange: function(option, checked) {
var values = []; var values = [];
$('#example40 option').each(function() { $('#example40 option').each(function() {
if ($(this).val() != option.val()) { if ($(this).val() !== option.val()) {
values.push($(this).val()); values.push($(this).val());
} }
}); });
alert(values);
$('#example40').multiselect('deselect', values); $('#example40').multiselect('deselect', values);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment