kunal
kunal
Why not just iterate through the text fields with .each() and use the index to compute the position?
Even after 2nd row, i.e with Editbox24 is created, while($(idName).length!=0) { checks with idName Editbox24, return false, and everything gets out of the loop, thus overlapping 2nd row again with Editbox24,25,26,27
kunal
Kunal Lakhani wrote:I have no idea how to do it. Can you please elaborate?
Okay. But still, what's wrong with the while code block?
kunal
The selector is wrong.
kunal
kunal
kunal
Kunal Lakhani wrote:I saw the documentation. It appears that $(...).length returns the number of elements found. With proper id it would be always 1 if found, 0 otherwise.
kunal
kunal
kunal
kunal
Don't get me started about those stupid light bulbs. |