Apps

Tucson Office


ADDRESS

4566 N 1st Ave Suite 140

Tucson, AZ 85718-5680

Phone & Email

(520) 318-1040

michale@jmhcpa.biz

Mon

Tues

Wed

Thurs

Fri

Sat

Sun

8am-4:30pm

8am-4:30pm

8am-4:30pm

8am-4:30pm

8am-3pm

Closed

Closed

Contact

In order to best serve you, we would like to learn a little more about you.

I am...

Submit
 
Submit
$('form.contact_form div.submit_button').on('click', function (element) { var formComplete = 1; // default to "yes" // check inputs $('form.' + $(this).parent('form').attr('class') + ' input[type=text]').each(function() { var required = 0; var thisID = $(this).attr('id'); var formClass = $(this).parent('form').attr('class'); var thisLabel = $('form.' + formClass + ' label[for="' + thisID + '"]'); if (thisLabel.hasClass('required') && (this.value == null || this.value == '')) { if (formComplete == 1) { alert('Please complete all required fields!'); $('form.' + formClass + ' label.required').addClass('requiredDetails'); } formComplete = 0; return; } }); // check textareas $('form.' + $(this).parent('form').attr('class') + ' textarea').each(function() { var required = 0; var thisID = $(this).attr('id'); var formClass = $(this).parent('form').attr('class'); var thisLabel = $('form.' + formClass + ' label[for="' + thisID + '"]'); if (thisLabel.hasClass('required') && (this.value == null || this.value == '')) { if (formComplete == 1) { alert('Please complete all required fields and text areas.'); $('form.' + formClass + ' label.required').addClass('requiredDetails'); } formComplete = 0; return; } }); if (formComplete == 1) { // hide button // get the contents of the form var post_json = $(this).parent('form').serializeFormJSON(); window.global_form_element = $(this); var cache_response = ''; $.post(window.location.protocol + '//' + window.location.host + '/contact-form-processor.php', post_json, function(response) { response = response.replace(/[\n\r]/g, ''); // remove carria returns from json var response_object = JSON.parse(response); console.log('>>response<<'); console.log(response_object); window.file_download = ''; window.custom_markup = ''; $.each(response_object, function (i, value) { if (i == 'file_download') { window.file_download = value; } if (i == 'custom_markup') { window.custom_markup = value; } }); cache_response = response; if (response_object.error_message) { window.global_form_element.parent('form').prepend('

There was an error submitting your request. '+response_object.error_message+'

'); } else { if (window.custom_markup) { window.global_form_element.parent('form').replaceWith(window.custom_markup); } else { window.global_form_element.parent('form').replaceWith('

Thank you for your interest in our firm!

' + (window.file_download ? '

Download: Click Here

' : '')); } } }); } });