how to remove HTML5 validation error on a button click -
i have html form use html5 validation validation .when reset form data reset validation error not gone
<div class="row"> <div class="col-sm-6 col-sm-offset-5"> <div class="btn-toolbar"> <button class="btn-danger btn" onclick="javascript:$('#validateform').parsley( 'validate' );">submit</button> <button class="btn-default btn" onclick="this.form.reset();">cancel</button> </div> </div> </div>
finally found answer
<div class="row"> <div class="col-sm-6 col-sm-offset-5"> <div class="btn-toolbar"> <button class="btn-danger btn" onclick="javascript:$('#validateform').parsley( 'validate' );">submit</button> <button class="btn-default btn" onclick="javascript:$('#validate-form').parsley( 'reset' );">cancel</button> </div> </div> </div>
Comments
Post a Comment