/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var value; var theDoc = window.document; var i = 9; do { value = theDoc.getElementById("product_"+i).value; // ...whatever ... } while (--i);