How to select an input by value with jQuery 1.4.3 and higher

后端 未结 5 1447
星月不相逢
星月不相逢 2020-12-10 00:49

With jQuery 1.4.2 and many previous version it is possible to select inputs like this:

$(\'input[value=test]\')

But with 1.4.3 and higher t

5条回答
  •  抹茶落季
    2020-12-10 01:28

    According to the documentation it should work just fine

    http://api.jquery.com/attribute-equals-selector/

    you need to use quotes to surround the value

提交回复
热议问题