Xv e boxer
Forester e boxer
XV
BRZ
Xv e boxer Offers
Forester e boxer Offers
XV Offers
BRZ Offers
Levorg Offers
Locate Us
Request a Brochure from Aird Motors Limited
Please fill in the form below and we will contact you shortly.
').insertBefore($(this));
// 3s Delay for aesthetics only
setTimeout(function() {
// Update Fake Button Text
done.text('Submitted!');
// Submit the form
$this.parents('form').submit();
}, 3000);
});
$('#addressFinder,#address,#address1,#town,#county,#postcode,#manuallyenteraddress').parent('div').addClass('form-address');
$('#brochureHardCopy').parent().addClass('brochureHardCopyWrap');
function checkbrochure() {
if ( $('#brochureHardCopy').val() == '1' ) {
$('#postcode').attr('required',true);
$('.form-address').show();
} else {
$('#postcode').attr('required',false);
$('.form-address').hide();
}
}
checkbrochure();
$('#brochureHardCopy').change(checkbrochure);
function validateEmail(email) {
var re = /^(([^()\[\]\\.,;:\s@"]+(\.[^()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}
$('#manuallyenteraddress').click(function(){
$('.form-address input').attr({'readonly':false,'required':true});
$('#address1').attr({'readonly':false,'required':false});
$('.form-address label:not(:contains(" *"))').append(' *');
$('#address1').parent().find('label').html('Address Line 2');
$('#addressFinder').parent().addClass('hidden');
$('#addressFinder').attr({'required':false});
})
$('.new-model').click(function() {
if($('#model').val() == 'workman') {
$('.brochureHardCopyWrap').hide();
} else {
$('.brochureHardCopyWrap').show();
}
});
if($('a[data-key="workman"]').hasClass('active')) {
$('.brochureHardCopyWrap').hide();
} else {
$('.brochureHardCopyWrap').show();
};
$('#submitButton').append('
');