Assigning values to variable WHILE loop

Posted by Milaan on Stack Overflow See other posts from Stack Overflow or by Milaan
Published on 2011-03-10T15:20:29Z Indexed on 2011/03/10 16:10 UTC
Read the original article Hit count: 293

Hi!

I have a WHILE loop that loops through a table as long as $i is less than 10. I want this loop to assign the INNERHTML of each cell to a variable. So that I can use it later on to process the information (the loop is because you can choose if it has to take first 3 or first 10 cells). But how do I assign every innerHTML to a different variable? I'm sure there has to be an easy way. But google couldn't get me a good answer.

Thanks in advance!

Milaan

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery