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

 

posted @ 2018-12-27 17:29  PanPan003  阅读(128)  评论(0编辑  收藏  举报