jquery.ui.spinner icon indicating copy to clipboard operation
jquery.ui.spinner copied to clipboard

"Update" Event

Open bluetidepro opened this issue 12 years ago • 1 comments

If I generate a new input that has the spinner class, how do I re-run the plugin to change the input to a spinner input? Currently, when I dynamically add new inputs (even if they have the spinner class I set) they do not appear as a spinner like the ones that were loaded on page load?

Is there an event for this or if not, can it be added?

bluetidepro avatar Oct 25 '12 18:10 bluetidepro

Any jQuery widget must be instantiated via javascript, not by applying a class. You must call $('#id').spinner() on each input to make it into a spinner after it is dynamically added. You could use your classname in the query to apply it to those classes.

On Thu, Oct 25, 2012 at 2:44 PM, Zach Reed [email protected] wrote:

If I generate a new input that has the spinner class, how do I re-run the plugin to change the input to a spinner input? Currently, when I dynamically add new inputs (even if they have the spinner class I set) they do not appear as a spinner like the ones that were loaded on page load?

Is there an event for this or if not, can it be added?

— Reply to this email directly or view it on GitHubhttps://github.com/btburnett3/jquery.ui.spinner/issues/26.

btburnett3 avatar Oct 25 '12 19:10 btburnett3