mualanj
0
Newbie Poster
Recommended Answers
Jump to PostIt depends on exactly what you want to do. There are many formulations here are a couple.
1. To put a textbox value into a specified index in the array:
var a = [];//new array function putValueIntoArray(textboxID, index) { var textbox = document.getElementById(textboxID); if(textbox) { a[index] …
Jump to Post//get textbox elements var txtTextBox1 = document.getElementById('txtTexBox1'); var txtTextBox2 = document.getElementById('txtTexBox2'); //[] is short hand var a = [txtTextBox1.value, txtTextBox2.value];
All 5 Replies
Airshow
416
WiFi Lounge Lizard
Team Colleague
stbuchok
Admiral
commented:
Super clean, minimal and directly to the point.
+0
mualanj
0
Newbie Poster
stbuchok
Airshow
416
WiFi Lounge Lizard
Team Colleague
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.