View Single Post
Old 11-11-2012, 01:29 AM   PM User | #1
NorbNYC
New to the CF scene

 
Join Date: Aug 2012
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
NorbNYC is an unknown quantity at this point
variable valuation in the for statement

Hi folks.

I know numbertohide = 2.

How come
Code:
				for (var h=numbertohide;h<6;h++)
					{
					
					inputselectionelementid = '#inputselection' + h;					
					$(inputselectionelementid).hide();
					console.log('hide ' + inputselectionelementid);
					}
does not work? Only var h=2 directly properly executes the loop.

Thanks
NorbNYC is offline   Reply With Quote