Form the basic usage jquery selector

Form the basic usage jquery selector

:input

:password

:radio

:checkbox

:submit

:reset

:image

:button

:file

:hidden

<form>

<input type="text" name="username" value="www.96net.com.cn">

</form>

1, input selector

  $("input")

   $("input[name=username]")

  2, the pseudo-class selector

  $(":input")

  $(":input[name=username]")

 

Guess you like

Origin www.cnblogs.com/96net/p/12591105.html