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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -