Tru*_*ufa 2 jquery jquery-selectors
到现在为止我成功使用了这个选择器:
$('input, textarea')
Run Code Online (Sandbox Code Playgroud)
但问题是这也选择了输入 type=password
$("input[type=text],input:not([type]),textarea")
Run Code Online (Sandbox Code Playgroud)
但其他类型呢?
我想选择没有设置type属性的所有输入password.
我试图使用:not选择器但无法成功使用它.
$("input:not(:password)")
Run Code Online (Sandbox Code Playgroud)
似乎没有工作.