search

Home  >  Q&A  >  body text

$("input")和$(":input")有没有区别??

$("input")和$(":input")有没有区别??

phpcn_u233phpcn_u2332930 days ago1217

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:17:19

    Is there any difference between $("input") and $(":input")? ? -PHP Chinese website Q&A-Is there any difference between $("input") and $(":input")? ? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-20 17:27:09

    $("input")只选择input标签.如:<input id="" type="" name="" /> ;

    $(":input")是伪类选择,不单单是input,还包括textarea和select,button.如<input />,<textarea></textarea>,<select></select>

    reply
    0
  • Cancelreply