title: Is it posible to get all the values of the text boxes with the same name?
body: <p>I have a doubt in javascript. Is it posible to get the values of text boxes with the same name ? </p>
  
  <p>for example </p>
  
  <pre><code>&lt;INPUT TYPE="text" NAME="inputbox" VALUE=""&gt;
  &lt;INPUT TYPE="text" NAME="inputbox" VALUE=""&gt;
  </code></pre>
  
  <p>these text boxes have same name, how can i get its values by name ?</p>
  
  <p>OK, lemme come to the real problem i got, hope am explaining correctly.</p>
  
  <p>I have a series of text boxes which i gotta validate now. Its not a big deal to validate textboxe normally.</p>
  
  <p>But this is an array of text boxes where the id of the text boxes will be available only when the fields are added dynamically by clicking on the + button. when the press button is clicked the whole set of text boxes will appear. as many times its clicked, it will get added.</p>
  
  <p>So its imposible to get the values to validate with the ID, so i tried by name.</p>
  
  <p>JAVASCRIPT FUNCTION</p>
  
  <pre><code>function insComep()
      {
  
      // $("#doctorPri").validationEngine("updatePromptsPosition")  
  // jQuery("#doctorPri").validationEngine('attach', {promptPosition : "topRight"});
  
          rl=document.getElementById("compeTable").rows.length;
          var a=document.getElementById("compeTable").insertRow(rl);
  
          var g=a.insertCell(0);
          var f=a.insertCell(1);  
          var m=a.insertCell(2);  
          var n=a.insertCell(3);  
          var o=a.insertCell(4);  
          var p=a.insertCell(5);
          var q=a.insertCell(6);
          var r=a.insertCell(7);
          var s=a.insertCell(8);
          var t=a.insertCell(9);
          //var v=a.insertCel1l(11);
          //var u=a.insertCell(12);
  g.innerHTML='&lt;select name="competproduct[]" style="width:86px" id="competproduct'+rl+'" class="validate[required]" &gt;&lt;option value=""&gt;--Select--&lt;/option&gt;&lt;?echo $product_str;?&gt;&lt;/select&gt;';
  f.innerHTML='&lt;input type="text" name="competcompany[]" id="competcompany'+rl+'" size="10" class="validate[required]" &gt;';
  m.innerHTML='&lt;input type="text" name="competbrand[]" id="competbrand'+rl+'" size="10" class="validate[required]" &gt;';
  n.innerHTML='&lt;input type="text" name="competdrug[]" id="competdrug'+rl+'" size="10" class="validate[required]" &gt;';
  o.innerHTML='&lt;input type="text" name="competquty[]" id="competquty'+rl+'" size="2" class="validate[required,custom[integer]] text-input" &gt;';
  p.innerHTML='&lt;input type="text" name="competprice_frm[]" id="competprice_frm'+rl+'" size="2" class="validate[required,custom[number],funcCall[getPriceFromE]] text-input" /&gt;';
  q.innerHTML='&lt;input type="text" name="competprice_to[]" id="competprice_to'+rl+'" size="2" class="validate[required,custom[number],funcCall[getPriceTo]] text-input" /&gt;';
  r.innerHTML='&lt;input type="text" name="competmrp[]" id="competmrp'+rl+'" size="2" class="validate[required,custom[number],funcCall[getMrp]] text-input"/&gt;';
  s.innerHTML='&lt;select name="ChemistParma[]" style="width:86px" id="ChemistParma'+rl+'" style="width:86px" &gt;&lt;option value=""&gt;--Select--&lt;/option&gt;&lt;?echo $chemist_str;?&gt;&lt;/select&gt;'; 
  t.innerHTML='&lt;img src="media/images/details_close.png" onClick="delCompe('+rl+'); "/&gt;';
  // jQuery("#doctorPri").validationEngine('attach', {promptPosition : "topRight"});
  
  
       $("#doctorPri").validationEngine('hideAll');
      }
  </code></pre>
  
  <p>HTML </p>
  
  <pre><code>&lt;table width="100%" id='compeTable' border='0' style='margin-left:auto;margin-right:auto;margin-top:40px;' &gt;
  
  
  &lt;tr style="border-bottom:1px solid #999999;"&gt;&lt;td colspan='4'&gt;
  &lt;div style="background:;padding:3px;text-align:left; "&gt;
      &lt;font color='black'&gt;&lt;strong  &gt;Competitor Detail(s):&lt;/strong&gt;&lt;/font&gt;&lt;font color="red"&gt;*&lt;/font&gt;
  &lt;/div&gt;
  
  &lt;/td&gt;&lt;/tr&gt;
  
  
  
          &lt;tr&gt;
          &lt;td&gt;Product Name:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt;
  &lt;td&gt;Company Name:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt;
  &lt;td&gt;Brand Name:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt;
  &lt;td&gt;Drug Name:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt; 
  &lt;td&gt; Quantity:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt;
  &lt;td&gt;Pricefrom Dist:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt;
  &lt;td   &gt;Price to Dist:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt;
  &lt;td&gt; MRP:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/td&gt;
  &lt;td&gt;Chemist&lt;font color="red"&gt;*&lt;/font&gt;&lt;input type='button'value='+' style='width:1px' style='width:1px'  onclick='frame5()'/&gt; 
  &lt;/td&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
  
  
              &lt;tr&gt;
  
  
                      &lt;td&gt;
                      &lt;select name='competproduct[]' id='competproduct' style="width:86px" class="validate[required]" &gt;
                      &lt;option value=''&gt;-select Product-&lt;/option&gt;
                      &lt;? echo $product_str;?&gt;
  
                      &lt;/select&gt;
                  &lt;/td&gt;
  
                  &lt;td&gt;
                      &lt;input type="text" name="competcompany[]"  id="competcompany" size="10" class="validate[required]" &gt;
                  &lt;/td&gt;
                  &lt;td   &gt;&lt;input type="text" name="competbrand[]" id="competbrand" size="10" class="validate[required]" &gt;
                  &lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" name="competdrug[]" id="competdrug" size="10" class="validate[required]" &gt;
                  &lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" name="competquty[]"  id="competquty" size="2" class="validate[required,custom[integer]] text-input" &gt;
                  &lt;/td&gt;
                  &lt;td&gt;
  &lt;input type="text" name="competprice_frm[]" id="competprice_frm" size="2" class="validate[required,custom[number],funcCall[getPriceFromE]] text-input" /&gt;
  
                  &lt;/td&gt;
                  &lt;td&gt;
                  &lt;input type="text" name="competprice_to[]" id="competprice_to" size="2" class="validate[required,custom[number],funcCall[getPriceTo]] text-input" /&gt;
                  &lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" name="competmrp[]" id="competmrp" size="2" class="validate[required,custom[number],funcCall[getMrp]] text-input" onBlur=''/&gt;
                  &lt;/td&gt;
  &lt;td&gt;
  &lt;select name='ChemistParma[]' id='ChemistParma'  style="width:86px"&gt;
  &lt;option value=''&gt;-select chemict-&lt;/option&gt;
  &lt;?echo $chemist_str?&gt;
  &lt;/select&gt;&lt;/td&gt;
  &lt;td&gt;
  &lt;img src="media/images/details_open.png" onClick="insComep()"/&gt;
  &lt;/td&gt;
  
                  &lt;/tr&gt;
          &lt;/table&gt;
  </code></pre>