jQuery Tutorial Tutorials - jQuery :password selector

:password selector

The jQuery :password selector is used to select all type="password" elements.

$( "input:password" ) is equivalent to $( "input[type=password]" ).

jQuery :password selector Syntax

$(':password')

jQuery :password selector Examples

In below example,We will hightlight all password inputs.

Try now

Date:2019-08-19 02:07:44 From:www.Lautturi.com author:Lautturi