:password selector

:password Selector

password selector

Description: Selects all elements of type password.

  • version added: 1.0jQuery( ":password" )

$( ":password" ) is equivalent to $( "[type=password]" ). As with other pseudo-class selectors (those that begin with a ":") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ( "*" ) is implied. In other words, the bare $( ":password" ) is equivalent to $( "*:password" ), so $( "inp