bootstrap-combobox icon indicating copy to clipboard operation
bootstrap-combobox copied to clipboard

Provided updated method

Open riker09 opened this issue 12 years ago • 3 comments
trafficstars

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.

riker09 avatar Jul 22 '13 12:07 riker09

//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 */

shankreddy avatar Dec 11 '13 05:12 shankreddy

This is going to be targeted for the 2.0 release along with a lot of other public API updates.

thephw avatar May 13 '14 22:05 thephw

I need to fill second combobox on the basis of value in first combobox selected value How it is possible?

vipsachinverma avatar Dec 10 '14 12:12 vipsachinverma