我需要一个javascript代码行,它会点击网页上值为“abc”的所有输入标签。
<input value="abc" onclick="require("InlineFriendInviter").sendInvite("216532985099211", "100002543193060", "u_1h_2l", "send", "admin_tip");" type="submit" id="u_1h_2m">
当我尝试时,
$('input[value="abc"]').click();
我收到错误
Error: <![EX[["Tried to get element with id of \"%s\" but it is not present on the page.","input[value=\"abc\"]"]]]>
答案 0 :(得分:4)
$('input[value="abc"]').click();