By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,953 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,953 IT Pros & Developers. It's quick & easy.

Print an array of values from 256 textboxs

P: 1
I have 256 textboxs and I want to take values from that to an array and print it.
Jul 10 '13 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,731
You can use the document.getElementsByTagName(tagname) method to retrieve all inputs in your page.

Then you can loop through the results and check the type of the elements you retrieved. If the type is "text" then you know it's a textbox.

You should be able to print your values from that.

Jul 10 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.