1. 程式人生 > >jQuery validator plugin之Selector

jQuery validator plugin之Selector

原文

 

:unchecked Selector

Selects all elements that are unchecked.

  • jQuery( ":unchecked" )

 

 

 

: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