Skip to content

Commit 69dbdeb

Browse files
committed
Merge pull request #89 from xiaohwan/master
Per jQuery doc, .prop() should be used to check whether an option is sel...
2 parents c67e203 + 1b6a7c5 commit 69dbdeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/bootstrap-combobox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767
map[option.text()] = option.val()
6868
source.push(option.text())
69-
if (option.attr('selected')) {
69+
if (option.prop('selected')) {
7070
selected = option.text()
7171
selectedValue = option.val()
7272
}

0 commit comments

Comments
 (0)