title: I need to add field after function return something
body: <p>I need to add field in error div once it returns list of elements containing error.</p>
  
  <p>My function is on submit.</p>
  
  <pre><code>$("#form").on('submit', function (event) {
  return checkInputFields {formParam: this});
  $("#fErrors ul").append('&lt;li id="customError"&gt;Please tick one checkbox in Role&lt;/li&gt;');
  });
  </code></pre>
  
  <p>Once i get the error div then only i can add my li to it.But that is not happening.</p>