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

猜你喜欢

转载自www.cnblogs.com/panpanwelcome/p/10186228.html