I have,

<input type=text> inside a table..

The table is static...

how can i in a javscript function, retrieve number of rows.. which will also be number of textboxes..

Recommended Answers

All 2 Replies

sorry i meant table is dynamic

Hi there,

I'm not really sure what you mean, but if it's the total number of rows (and thus number of textboxes) you're looking for, you could try something like getElementsByTagName() to count the number of inputs.
Reference

Again, if it's not the answer you were looking for, please explain the issue a little further.

Traevel

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.