title: jQuery to get different value from on click class
body: <p>I tried to get value from class have defined values</p>
  <pre><code>&lt;input type=&quot;checkbox&quot; class=&quot;cat&quot; value=&quot;3&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;cat&quot; value=&quot;5&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;cat&quot; value=&quot;8&quot;&gt;
  </code></pre>
  <p>and my jquery code</p>
  <pre><code>$('.cat').click(function(){
            var cat = Number($('.cat').val());
          $(&quot;.cat&quot;).val(cat);
   // after that using my code
  
  }
  </code></pre>