jquery表单选择器基本用法

jquery表单选择器基本用法

:input

:password

:radio

:checkbox

:submit

:reset

:image

:button

:file

:hidden

<form>

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

</form>

1,input 选择器

  $("input")

   $("input[name=username]")

  2,伪类选择器

  $(":input")

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

 

posted @ 2020-03-29 10:32  学无边涯  阅读(222)  评论(0编辑  收藏  举报