[jQuery] Re: plugins aren't applied on second call

2009-06-09 Thread Paul Mills
Hi, Your HTML is not valid. IDs must be unique - you have used #txtSpin and #color twice. Try renaming the first input box as id=txtSpin1 and the second as id=txtSpin2 Your JavaScript code then becomes much simpler: $('#txtSpin1').SpinButton({min:1}); $('#txtSpin2').SpinButton({min:1}); or if

[jQuery] Re: plugins aren't applied on second call

2009-06-09 Thread skunkwerk
thanks Paul, i knew that rule, but didn't realize that was the issue. i just switched to using classes, and its all good now. appreciate it, imran On Jun 9, 3:46 am, Paul Mills paul.f.mi...@gmail.com wrote: Hi, Your HTML is not valid. IDs must be unique - you have used #txtSpin and