Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provided updated method #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Provided updated method #83

wants to merge 1 commit into from

Conversation

riker09
Copy link

@riker09 riker09 commented Jul 22, 2013

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

//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
Copy link
Collaborator

thephw commented May 13, 2014

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

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