jQuery validator plugin之Selector
阿新 • • 發佈:2018-12-27
: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