Skip to content

Commit 529c2e6

Browse files
committed
Merge pull request #1045 from mpokrywka/patch-1
Fix init from select for jQuery >= 1.9
2 parents 6fbea9a + 8257611 commit 529c2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/selectize.jquery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $.fn.selectize = function(settings_user) {
6060
var addOption = function($option, group) {
6161
$option = $($option);
6262

63-
var value = hash_key($option.attr('value'));
63+
var value = hash_key($option.val());
6464
if (!value && !settings.allowEmptyOption) return;
6565

6666
// if the option already exists, it's probably been

0 commit comments

Comments
 (0)