Thread
:
Cannot Find Error in JQuery
View Single Post
05-14-2011, 08:51 AM
PM User
|
#
3
SB65
Senior Coder
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,827
Thanks: 9
Thanked 685 Times in 679 Posts
Code:
var idCounter=1; $("#addButton").click(function(){ ...... for (var i=1;
i<idCounter
; i++) { ..... }
If you're initialising idCounter to 1, then the end condition in your for loop is already met, so it won't loop...is that the problem?
SB65
View Public Profile
Visit SB65's homepage!
Find More Posts by SB65