The blow script works but is also outputting a "type e" error in jquery...
I've been looking at this for about 20mins now and am failing to see the problem.
if ($('input[type="submit"]').hasClass('.grey-button')) {
$(this).wrap('<span class="button grey-button"></span>');
} else {
$(this).wrap('<span class="button"></span>');
}
What am i mssing ?
hasClass('.grey-button')should behasClass('grey-button')without.