Is there a way to get the value of the classname like using an index or array? I have this code:
<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">
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
var $classOfBtn = wpsc-buy-now-button-64;
64 is an id that I need to compare with another value in a foreach. This changes depending on content.