Reqvalidate validation function - Live demo


Demo of both Validate() and the "reqvalidate" data-action function.



Validate form
Demo of both Validate() and the "reqvalidate" data-action function.
<br /><br/>
<span data-func="reqvalidate" data-target="Field1" data-message="Field1 has to have a value!">
    <input name="Field1" placeholder="Empty field, click validate form button." readonly="readonly" style="width:20em;display:inline-block" />
</span>
<br/><br/>
<a class="btn btn-primary validatebtn">Validate form</a>
$(".validatebtn").on("click", function() {
    $form.Validate();
    return false;
});

Output templates

Templates used for document and web page generation:

Friendly Name File Name Template