Skip to content

Commit 26d76cb

Browse files
klosowskjoallard
authored andcommitted
Examples: Fix one in examples/api (selectize#1186)
Error solved by, changing the syntax addoption.
1 parent afd0c9c commit 26d76cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ <h2>API</h2>
6161

6262
$('#button-addoption').on('click', function() {
6363
control.addOption({
64-
id: 4,
65-
title: 'Something New',
64+
value: 4,
65+
text: 'Something New',
6666
url: 'http://google.com'
6767
});
6868
});

0 commit comments

Comments
 (0)