adding multiple jquery spinners? please help


#1

hi everyone,

I am trying to add jquery spinners on button click but instead of new spinner, a textbox is added.

below is my code :

div id=“ty”

/div’

I am talking about jquery ui spinner.

please help.

thanks in advance.


#2

If I’m not wrong you are using the same ID for your spinners. Try using unique ID or a class name instead.


#3
ram64 said

If I’m not wrong you are using the same ID for your spinners. Try using unique ID or a class name instead.

hi,

I tried that also, but not working when I add the spinner dynamically.


#4

This works. I’ve changed to class names instead of id and called the spinner() method on the newly created input tag.



#5

thanks a lot ram64 :).

its working. I am very thankful to you :slight_smile: