jquery.ajax-combobox
jquery.ajax-combobox copied to clipboard
Destroy method
Just played with this plugin and works very well in my app. Question, is there a method to destroy or reset the ajax combo in JS ? Basically I want to call the constructor again with different args, but doing this, the UI breaks (creating a wrapper over a wrapper, and so) If not I can add a destroy method and send a pull request. Thanks
I have indenticaly problem. In one wrapper use few combobox. After change user from list, need different info in combobox.
I am planning to cope it at next major update v8.0.0.
(But I will do patch update v7.4.5 first.)
In v8.0, I will enable to execute public method like jQueryUI.
// Apply plugin
$('#foo').ajaxComboBox();
// Call public method
$('#foo').ajaxComboBox(
'reset', // Public method
'jquery.ajax-combobox.php', // 1st arg for public method
{lang: 'en') // 2nd arg for public method
);