-1

我需要一个javascript代码行,它将点击网页上所有值为“abc”的输入标签。

<input value="abc" onclick="require(&quot;InlineFriendInviter&quot;).sendInvite(&quot;216532985099211&quot;, &quot;100002543193060&quot;, &quot;u_1h_2l&quot;, &quot;send&quot;, &quot;admin_tip&quot;);" 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\"]"]]]>
4

1 回答 1

4
$('input[value="abc"]').click();
于 2013-07-12T18:36:35.537 回答