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]")

猜你喜欢

转载自www.cnblogs.com/96net/p/12591105.html
今日推荐