jquery.ui.spinner
jquery.ui.spinner copied to clipboard
"Update" Event
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?
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.