title: Can you trigger custom HTML5 form errors with JavaScript?
body: <p>If i have an input like <code>&lt;input type=&quot;text&quot;&gt;</code> and i want to trigger a native error on the input, can you do that? Like (faux code) <code>ele.triggerError('Error Message');</code></p>
  <p>It would then look like:</p>
  <p><a href="https://i.stack.imgur.com/k49nh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k49nh.jpg" alt="error" /></a><br />
  <sub>(source: <a href="http://tylergaw.com/storage/post_image_htmlFormErrors_defaultChrome.jpg" rel="nofollow noreferrer">tylergaw.com</a>)</sub></p>
  <p>But with a custom message and for it's own validation function. Needed for AJAX validations for example.</p>