title: How to get class name dynamically from element on jQuery?
body: <p>Is there a way to get the value of the classname like using an index or array? I have this code:</p>
  
  <pre><code>&lt;input class="wpsc-buy-now-button wpsc-buy-now-button-64" type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online"&gt;
  </code></pre>
  
  <p>I want to get the wpsc-buy-now-button-64 dynamically. I don't want to use $(".wpsc-buy-button-64"), because my plan is to put it on a variable like so</p>
  
  <pre><code>var $classOfBtn = wpsc-buy-now-button-64;
  </code></pre>
  
  <p>64 is an id that I need to compare with another value in a foreach. This changes depending on content.</p>