title: on each button click store value in array
body: <pre><code>&lt;input type="button" class="sal" value="0"&gt;
  &lt;input type="button" class="sal" value="0"&gt;
  &lt;input type="button" class="sal" value="0"&gt;
  &lt;input type="button" class="sal" value="0"&gt;
  </code></pre>
  
  <p>On each button click store clicked value in a array
  I have tried this</p>
  
  <pre><code>$( document ).ready(function() {
              $('.sal').each(function() {
              $(this).click(function(i) {                    
                   var i[]=$(this).val();
                  console.log(i);
              }); 
            });
  });
  </code></pre>
  
  <p>What I am missing here !!!!!</p>