bootstrap-combobox
bootstrap-combobox copied to clipboard
Provided updated method
With this pull request the plugin receives an update method that allows updating the combobox element with jQuery, see #75.
var val = 'my_value';
jQuery('#my_element').combobox('update', val);
There is still some room for improvement, for instance when the value of the select element has changed one could call the update method without any parameter and the text input changes to whatever is currently selected.
//Based on the selection in the first combobox i need load the values second //how to achieve this using update plz help!!!
var flowers = ['Sunflower','Rose'];
$('#mainCategoryCombo').on('change',function(){
var option='';
if($(this).val()=='flower'){
for (i=0;i<flowers .length;i++){
console.log(flowers [i]);
}}});
/*Main category combo
flower category combo */
This is going to be targeted for the 2.0 release along with a lot of other public API updates.
I need to fill second combobox on the basis of value in first combobox selected value How it is possible?