我试着在谷歌上搜索这个,但我只在事件触发搜索上搜索,而不是在寻找什么。
如果可能的话,我想通过使用值或文本来动态点击选择下拉列表中的任何选项。
HTML
<select id="certainspamselectid" name="certainspamselect" style="margin-left: 165px;">
<option value="0">permanently deleted</option>
<option value="4">moved to admin quarantine</option>
<option value="1">moved to junk email folder</option>
<option value="5">delivered to inbox with tag</option>
<option value="2">delivered to inbox</option>
</select>
我不确定我是否需要使用与
$("#certainspamselectid").click.....
但我不确定点击后要用什么。我本可以尝试更多的方法,但当我只想使用JS或jQuery点击其中一个选项时,我的谷歌搜索一直在精确定位事件触发器。