title: I want to store input value in an array using jquery
body: <p>i have table and inside td i have a input field,i want to to store all the id values in to array using jquery.</p>
  
  <pre><code>&lt;td class="center"&gt;
      &lt;div id="divId"&gt;
          &lt;img src="&lt;?php echo base_url()?&gt;assets/backend/img/small.gif" width='40px' height='30px'&gt;&lt;/img&gt; 
      &lt;/div&gt;
      &lt;input type="hidden"  class="box" id="boxId" name="foo" value="&lt;?php  echo $device-&gt;deviceId;?&gt;" /&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>my javascript method is </p>
  
  <pre><code>&lt;script&gt;
  
  function yourfunction() {                           
      var no=document.getElementById("boxId").value;              
      alert("no"+no);
  }
  var x=setInterval(yourfunction,600);
  &lt;/script&gt;
  </code></pre>
  
  <p>i tried using an loop but it didnt work always added up the first value.</p>