Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions entries/validate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,19 @@
</desc>
<type name="Boolean"/>
</property>
<property name="customElements" default="[]">
<desc>
By default, only the following elements are validatable: input, select, textarea and [contenteditable]
Use this to register your additional/custom elements, for example web components.
<p><strong>Example</strong>: Register &lt;my-custom-element&gt; to be validatable as well.</p>
<pre><code>
$("#myform").validate({
customElements: ["my-custom-element"]
});
</code></pre>
</desc>
<type name="Array"/>
</property>
</argument>
</signature>
<category slug="plugin"/>
Expand Down