diff --git a/bower.json b/bower.json index eb8319a..b197dd8 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jquery.selectBoxIt", - "version": "3.8.1", + "version": "3.8.3", "homepage": "http://www.selectboxit.com/", "authors": [ "Greg Franko " diff --git a/src/javascripts/jquery.selectBoxIt.js b/src/javascripts/jquery.selectBoxIt.js index ebc9764..d0910a1 100644 --- a/src/javascripts/jquery.selectBoxIt.js +++ b/src/javascripts/jquery.selectBoxIt.js @@ -1534,7 +1534,7 @@ // `open` event with the `selectBoxIt` namespace "open.selectBoxIt": function() { - var currentElem = self.list.find("li[data-val='" + self.dropdownText.attr("data-val") + "']"), + var currentElem = self.list.find("li[data-val=\"" + self.dropdownText.attr("data-val") + "\"]"), activeElem; // If no current element can be found, then select the first drop down option diff --git a/src/javascripts/modules/jquery.selectBoxIt.core.js b/src/javascripts/modules/jquery.selectBoxIt.core.js index cb0b434..8bb89e0 100755 --- a/src/javascripts/modules/jquery.selectBoxIt.core.js +++ b/src/javascripts/modules/jquery.selectBoxIt.core.js @@ -1534,7 +1534,7 @@ // `open` event with the `selectBoxIt` namespace "open.selectBoxIt": function() { - var currentElem = self.list.find("li[data-val='" + self.dropdownText.attr("data-val") + "']"), + var currentElem = self.list.find("li[data-val=\"" + self.dropdownText.attr("data-val") + "\"]"), activeElem; // If no current element can be found, then select the first drop down option