I have code that will automatically add a new similar row defined in form by clicking add button. \[code\]<html><body><form><input type="text" name="quantity[]" class="input_text" id="pro"/> </form></body></html>\[/code\]Now I want to access different values of \[code\]quantity[]\[/code\] in javascript function .How to access this different values of \[code\]quantity[]\[/code\] in javascript using it's ID or Name Attribute. \[code\] <script> function abc() { var id = document.getElementById("pro").value; } </script>\[/code\]