<form action="#" method="POST" name="formTest" novalidate> <div class="form-group"> <label for="name">NAME:</label> <input type="text" id="name" name="name" data-rules="required" data-msg-custom="Fullname"> </div> <div class="form-group"> <label for="email">EMAIL:</label> <input type="email" id="email" name="email" data-rules="required|email" data-msg-custom="Email"> </div> <div class="form-group"> <label for="subject">EMAIL:</label> <input type="text" id="subject" name="subject" data-rules="required" data-msg-custom="Subject"> </div> <div class="form-group"> <label for="message" class="fl">MESSAGE:</label> <textarea id="message" name="message" rows="10" style="width:100%;" data-rules="required|max:10" data-msg-custom="MESSAGE"></textarea> </div> <button type="submit"> ENVIAR </button> </form>

// javaScript var inspect = new Inspect({ 'form' : 'formajax', 'touched' : true, }); inspect.make(function(data) { // your code here (for example: AJAX requests) // Clean the form inspect.pristine(); });