Quote OP:
"...but I can't find out for the life of me how they actually have their fields marked as
required
"
They have class="required"
inline with the HTML markup...
<input class="required" ...
Quote OP:
"...I see that they use the word required in the
class
selection, but how do they use that as the identifier for what fields are required or not?"
That's exactly how... by using class="required"
.
This is only one way that rules can be declared for this plugin. Generally, rules that are normally declared with a true
(within the .validate()
method), can instead be placed within the class
attribute, such as required
, digits
, email
, etc. However, rules that take more complex parameters, such as max
, maxlength
, min
, etc. cannot be declared in this fashion.
This plugin will also recognized HTML5 validation attributes...
<input required="required" ...