You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since there is no way to programmatically clear the selected value of a bootstrap-combobox, and because the author is unresponsive to feedback and PRs (#146, #158, #168, #235), I came up with a piece of code that lets you clear the selected value.
Include the following code in your page, before your own code but after the bootstrap-combobox.js file.
With this code you can explicitly clear the selected value.
$('.combobox').data('combobox').clear();
Or you can instead set the value of the underlying element to the empty string and then refresh the combobox. This is useful if the underlying element is controlled by code that you can't modify.
Uh oh!
There was an error while loading. Please reload this page.
Since there is no way to programmatically clear the selected value of a bootstrap-combobox, and because the author is unresponsive to feedback and PRs (#146, #158, #168, #235), I came up with a piece of code that lets you clear the selected value.
Include the following code in your page, before your own code but after the bootstrap-combobox.js file.
With this code you can explicitly clear the selected value.
Or you can instead set the value of the underlying element to the empty string and then refresh the combobox. This is useful if the underlying element is controlled by code that you can't modify.
Demo
https://jsfiddle.net/sliekens/gdnm9hut/
The text was updated successfully, but these errors were encountered: