t"><div class="qm-api-item-content"><div class="qm-api-description"><div class="qm-html-paragraph">A helper function for validating forms. By default, it will show a message below the first error in the form but will return an array with all the errors. </div><div class="qm-html-paragraph">An example use of this function could be: </div><div class="qm-html-paragraph"><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font">hx.select(<span class="hljs-string">'#form'</span>).selec