以下是我要点击的按钮的HTML:
<div style="" class="widgetPlaceholder widgetExpireTurbo" data-widget="turboBinary_tradologic_expireTurbo">
<input type="button" value="15s" class="expireTurboRuleInterval activeRule" data-ruleid="149">
<input type="button" value="30s" class="expireTurboRuleInterval" data-ruleid="148">
<input type="button" value="45s" class="expireTurboRuleInterval" data-ruleid="147">
<input type="button" value="1m" class="expireTurboRuleInterval" data-ruleid="106">
<input type="button" value="2m" class="expireTurboRuleInterval" data-ruleid="107">
<input type="button" value="5m" class="expireTurboRuleInterval" data-ruleid="108">
</div>
我希望通过jquery以value="30s"
的方式点击按钮。
以下是网址:https://binarykings.co.uk/traderoom-aspx?game=turbo&view=single&lang=en&filter=currencies
由于
答案 0 :(得分:5)
答案 1 :(得分:2)
$('input[value="30s"]').click();
答案 2 :(得分:2)
jQuery('input[value="30s"]').click();
答案 3 :(得分:0)