I have Written the code below which is too long. I want some shorter code:
b[0]=parseInt(document.getElementById(\"textbox1\").value); b[1]=parseInt(document.get
Well, as the numbers of the text boxes appear to increase by 3 each time, a simple loop should do it:
var i; for (i = 0; i < 17; ++i) { b[i] = parseInt(document.getElementById("textbox" + (i * 3 + 1)).value); }