jquery.ajax-combobox icon indicating copy to clipboard operation
jquery.ajax-combobox copied to clipboard

Destroy method

Open phpepe opened this issue 10 years ago • 2 comments

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

phpepe avatar Jun 26 '15 19:06 phpepe

I have indenticaly problem. In one wrapper use few combobox. After change user from list, need different info in combobox.

kPlusPlus avatar May 02 '17 14:05 kPlusPlus

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
);

sutara79 avatar May 15 '17 04:05 sutara79