Permalink
Browse files
Merge pull request #46 from mintuhouse/patch-1
Allow setting $select.val('').change()
Showing
with
0 additions
and
1 deletion.
-
+0
−1
jquery.dropdown.js
|
@@ -170,7 +170,6 @@ |
|
|
// Update dropdown when using val, need to use .val("value").trigger("change");
|
|
|
$select.on("change", function(e) {
|
|
|
var $this = $(e.target);
|
|
|
- if (!$this.val().length) return;
|
|
|
|
|
|
if (!multi) {
|
|
|
var $selected;
|
|
|
0 comments on commit
48c6630