![]() |
variable valuation in the for statement
Hi folks.
I know numbertohide = 2. How come Code:
for (var h=numbertohide;h<6;h++)Thanks |
not sure why, bt they way you've formed your code, I can tell you theres probably an easier way to do what you are doing, since you are apparently using jQuery.
Would you mind showing some more, maybe we can help you reach your overall goal a little better? - loop looks fine to me, most likely answer is that numbertohide isnt coming to 2, like you think it is |
Yup it was my mistake, numbertohide wasn't actually coming out to 2.
Thanks Dan |
| All times are GMT +1. The time now is 04:45 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.