JSFiddle - React, Tailwind, and code Playground
by tonyjcamp
JavaScript
// start using new plugin here
$('.step-1 .form-placeholder').validate({
errorElement: 'span',
success: 'valid',
error: 'error',
submitHandler: function () {
$('.step-1').fadeOut(500, function () {
$('.step-2').hide().removeClass('hidden').fadeIn(500, function () { $("#ssn").focus(); });
});
$('#current-step .current-page').text('2');
$('#slider-container').animate({ 'height': '690px' }, 600);
DT.Lead.submit('next');
return false;
},
rules: {
FirstName: {
accept: '[a-zA-Z]+'
},
LastName: {
accept: '[a-zA-Z]+'
}
}
});