jQuery check if <input> exists and has a value

后端 未结 7 759
情歌与酒
情歌与酒 2021-02-01 00:07

I have the following example:


Is there a way to check if this element exists and ha

7条回答
  •  时光说笑
    2021-02-01 00:48

    I would do something like this: $('input[value]').something . This finds all inputs that have value and operates something onto them.

提交回复
热议问题