Please contact our sales team for our extended inventory availability at 1-800-672-5844, extension 1177.
$.expr[":"].contains = $.expr.createPseudo(function(arg) {
return function( elem ) {
return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
};
});
$('#dev-table-filter').keyup(function (){
$('.col-equal').removeAttr('style');
var filter = $(this).val(); // get the value of the input, which we filter on
console.log(filter);
$('.card-deck').find('.card .card-body .car-details:not(:contains("'+filter+'"))').parent().parent().parent().hide();
})
var myCaptcha = null;
function prepCaptcha() {if (myCaptcha === null)
myCaptcha = grecaptcha.render(document.getElementById('my-captcha'), {
'sitekey': '6LepfycqAAAAAOo_6_J-oAxJHNF5ew4CQRM5RJY_',
'theme': 'light'
});
else
grecaptcha.reset(myCaptcha);}
$('.inquireButton').on("click", function (e) {
prepCaptcha();
var vehicle = $(this).data('vehicle') // Extract info from data-* attributes
console.log(vehicle);
var modal = $('#inquireModal');
modal.find('.modal-title').text(vehicle);
modal.find('#inquiryVehicle').val(vehicle);
});
$(document).on('click', '.inquireSubmit', function (e) {
e.preventDefault();
var name = $('#inquiryName').val();
var email = $('#inquiryEmail').val();
var phone = $('#inquiryPhone').val();
var message = $('#inquiryMessage').val();
var vehicle = $('#inquiryVehicle').val();
if( !email || !phone) {
$('.inquireNoEmail').show();
return false;
}
var postData = {
action: 'submit_inquiry',
name: name,
email: email,
message: message,
vehicle: vehicle
};
//This is where I left off, submitting form and displaying response
$.ajax({
type: "POST",
data: postData,
dataType:"json",
url: iisajax,
//This fires when the ajax 'comes back' and it is valid json
success: function (response) {
// console.log(response);
if (response.email == 'true'){
console.log(response);
$('#inquireModal').modal('hide');
$('#thankYouModal').modal('show');
return false;
}
}
//This fires when the ajax 'comes back' and it isn't valid json
}).fail(function (data) {
// console.log(data);
});
});
New message
Please enter an email address so we can reach out to you
Message Received
Thank you for your message. Someone from our team will respond within 24 hours!