1$(document).ready(function () {
2 var $allClasses = $("[name='submit']").attr('class').split(' ');
3 for(var i=0; i < $allClasses.length; i++)
4 {
5 // Check $allClasses[i] here.
6 }
7});
8
1 $('.setvalue').on('click', function() {
2 var id = $(this).data("id");
3 var inp = $('#applicantstatus_' + id).val();
1<input id="btn" class="wpsc-buy-now-button wpsc-buy-now-button-64" type="image"
2 name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif"
3 alt="PayPal - The safer, easier way to pay online" />
4
1var classArray = $('input').attr('class').split(' ');
2// So now you can declare variables
3var classbtn1 = classArray[0];
4var classbtn2 = classArray[1];
5
1$(document).ready(function () {
2 var $classOfBtn = $('#btn').attr('class').split(' ')[0] + '-64';
3 alert($classOfBtn );
4});
5