vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.73k forks source link

How to change selected element inside of select programmatically? #1102

Open maykino opened 6 years ago

maykino commented 6 years ago

I have a dropdown (select) with two elements. When I press a button I want the dropdown to change selected element to the other one. Everything looks good until I click on the field to update it, the old value shows up. What would be the best way to fix it?

maykino commented 6 years ago

Anyone?

maykino commented 6 years ago

I found the answer here: https://stackoverflow.com/questions/26051987/x-editable-value-change-on-dynamically-not-working