jQuery validator plugin之Selector
:unchecked Selector
Selects all elements that are unchecked.
-
jQuery( ":unchecked" )
- Inversion of :checked.
:filled Selector
Selects all elements with a filled value.
-
jQuery( ":filled" )
filled means any value, but not only whitespace.
The implementation does a check like this: jQuery.trim(value).length > 0
:blank Selector
Selects all elements with a blank value.
-
jQuery( ":blank" )
Blank means either no value at all or only whitespace.
The implementation does a check like this: jQuery.trim(value).length == 0