Input vs :Input in jQuery

前端 未结 3 1995
清歌不尽
清歌不尽 2021-02-13 11:43

I wonder why people seems to prefer :input over input as a jQuery selector? Basically, this two lines seem to do the same thing :

$(\'i         


        
3条回答
  •  有刺的猬
    2021-02-13 12:14

    :input is pseudo selector by jQuery which includes ,