View Single Post
Old 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
SB65 will become famous soon enoughSB65 will become famous soon enough
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 is online now   Reply With Quote