Skip to content

Instantly share code, notes, and snippets.

@rdallaire
Created July 28, 2014 17:03
Show Gist options
  • Save rdallaire/ae6a9d694d94bfd184a6 to your computer and use it in GitHub Desktop.
Save rdallaire/ae6a9d694d94bfd184a6 to your computer and use it in GitHub Desktop.
// custom contact form
$('#contact_us_form').on('click', '#submit-contact', function() {
// $phoneNumber = $('#phone').val();
// $message = $('#message');
// dev.log('Phone', $phoneNumber);
$('#message').text('Schedule a free consultation' + '\n' +
'_______________________________________' + '\n \n' +
'Phone #: ' + $('#phone').val() + '\n' +
'Company: ' + $('#company-name').val() + '\n' +
'Contact Time: ' + $('#time').val() + '\n' +
'Time Zone: ' + $('#time-zone').val());
$('#contact_us_form').submit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment