Hi there, thanks for that.. still not working, here is my code
<script type="text/javascript" class="cm-ajax-force">
$(document).ready(function(){
$.ceEvent('on', 'ce.formpost_quick_contact', function(form, elm) {
console.log("post_form event");
if (!e.html && $("#enquiry_type").val() == "Sale"){
console.log("sales enquiry");
ga('send','event','Email Lead',$("#contact_email").val(), $("#contact_name").val());
}
});
});
</script>
<div id="quick_contact_container" style="margin-bottom:20px;background:#c6c6c6;padding:20px;" class="bfaCornerRadius">
<h2>Have a question? You can use the form below to send us a message</h2>
<form action="http://testing.bar-fridges-australia.com.au/" class="cm-ajax cm-processed-form" method="post" name="quick_contact" enctype="multipart/form-data" target="_self">
<input type="hidden" name="redirect_url" value="index.php">
<input type="hidden" name="result_ids" value="quick_contact_captcha">
<div style="float:left;width:50%;">
<div class="control-group profile-field-wrap shipping-email">
<label for="contact_name" class="cm-profile-field cm-required">Name</label>
<input type="text" id="contact_name" name="name" size="32" class="input-text cm-skip-avail-switch">
</div>
<div class="control-group profile-field-wrap shipping-email">
<label for="contact_email" class="cm-profile-field cm-required cm-email">E-mail</label>
<input type="text" id="contact_email" name="email" size="32" class="input-text cm-skip-avail-switch">
</div>
<div class="control-group profile-field-wrap shipping-email">
<label for="contact_phone" class="cm-profile-field cm-required cm-phone">Phone</label>
<input type="text" id="contact_phone" name="phone" size="32" class="input-text cm-skip-avail-switch">
</div>
<div class="control-group profile-field-wrap ">
<label for="fridge_type" class="cm-profile-field ">Enquiry Type</label>
<select name="fridge_type" style="width:200px;">
<option value="Not specified">Please select</option>
<option value="Indoor">Indoor</option>
<option value="Outdoor">Outdoor</option>
</select>
</div>
<div class="control-group profile-field-wrap">
<label for="enquiry_type" class="cm-profile-field">Enquiry Type</label>
<select name="enquiry_type" style="width:200px;" id="enquiry_type">
<option value="Not specified">Please select</option>
<option value="Sale">Sale</option>
<option value="Service">Service</option>
</select>
</div>
<div class="form-field">
<p class="strong">File upload (JPG,PDF,PNG files only)</p>
<input type="file" name="files[]" multiple="">
</div>
</div>
<div id="contact_us_message">
<p class="strong">Message</p>
<textarea id="contact_message" name="message" style="width:100%;height:333px;resize:none;"></textarea>
<span id="wrap_button_cart_526" class="button-submit button-wrap-left vs-atc">
<span class="button-submit button-wrap-right vs-atc">
<input id="button_cart_526" type="submit" value="Submit Enquiry" style="font-size:18px;">
</span>
</span>
</div>
<div style="clear:both;">
<div class="form-field" id="quick_contact_captcha" style="display:inline-block;">
<!--quick_contact_captcha--></div>
</div>
<input type="hidden" name="dispatch" value="quick_contact.send_mail">
</form>
<!--quick_contact_container--></div>