How can I validate some inputs that are not in a form tag?
I found that all samples are a form tag, but I want to validate some inputs which are not in the form of a form.
was linking it was last updated in January 2009. This is very different from the obsolete plugin:
Title : "Valid values that with jQuery validation plugin "
Tags :
To use this, you can not validate the input element which is & lt; Form & gt; & Lt; / Form & gt;
Container There is no alternative solution for this limitation.
Demo 1 : Form
shows the proper use of the container.
& lt; Form id = "myform" & gt; & Lt; Input type = "text" name = "myinput" /> & Lt; Input type = "submit" / & gt; & Lt; / Form & gt;
Demo 2 : form
container to a div
and The same code is now completely broken. The plugin does nothing without the form
container.
& lt; Div id = "myform" & gt; & Lt; Input type = "text" name = "myinput" /> & Lt; Input type = "submit" / & gt; & Lt; / Div & gt;
Your only option will be to use a different jQuery plugin for form validation. Unfortunately, I do not know any jQuery form validation plug-in that will let you do & lt; Form & gt;
will allow validation of input elements outside the container.
Comments
Post a Comment