Skip to content

Provided updated method#83

Open
riker09 wants to merge 1 commit into
danielfarrell:masterfrom
riker09:feature.provide-update-method
Open

Provided updated method#83
riker09 wants to merge 1 commit into
danielfarrell:masterfrom
riker09:feature.provide-update-method

Conversation

@riker09

@riker09 riker09 commented Jul 22, 2013

Copy link
Copy Markdown

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.

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.
@shankreddy

Copy link
Copy Markdown

//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
Trees Fruits Flowers

flower category combo
*/

@thephw thephw self-assigned this May 13, 2014
@thephw thephw added this to the 2.0 Release milestone May 13, 2014
@thephw

thephw commented May 13, 2014

Copy link
Copy Markdown
Collaborator

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

@thephw thephw modified the milestone: 2.0 Release May 13, 2014
@vipsachinverma

Copy link
Copy Markdown

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

@wagedomain wagedomain assigned wagedomain and unassigned thephw Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants