| CONTACT US: 800-293-0420
RHINO FLEET TRACKING BLOG2019-06-27T09:29:32-05:00

Rhino Fleet Tracking Blog

Latest News About Fleet Tracking

///Form validation $('#form-1125').validate({ onsubmit: true, errorClass: "error-validator", errorElement: "div", wrapper: "div", errorPlacement: function(error, element) { offset = element.offset(); error.insertBefore(element) error.addClass('message-validator'); error.css('position', 'absolute'); error.css('left', $(element).position().left + $(element).width() - 5); error.css('top', $(element).position().top); } }); //Form processing $.support.cors = true; $('#form-1125').on('submit', function(e) { e.preventDefault(); var btn = $(this).children('button'); var isvalidate = $('#form-1125').valid(); if (isvalidate) { btn.prop('disabled', true); $.ajax({ type: "POST", url: $(this).attr('action'), data: $(this).serialize(), success: function(data, textStatus, jqXHR) { //data = returned message (error message or success message as set in your form builder settings) //error messages always start with 'Oops' if (data.substr(0,4) != 'Oops') { //if redirection is set and no error parent.location='http://www.rhinofleettracking.com/thank-you-3/'; } else { alert (data); } btn.prop('disabled', false); } }); } return false; }); });