【发布时间】:2015-05-12 10:31:53
【问题描述】:
Fb 群组上有一个 texbox。这是html代码:
<input type="text" class="inputtext textInput" name="freeform"
placeholder="Gruba Başkalarını Ekle" autocomplete="off" aria-autocomplete="list"
aria-expanded="false" aria-owns="typeahead_list_u_jsonp_4_2" aria-haspopup="true"
role="combobox" spellcheck="false" aria-label="Gruba Başkalarını Ekle"
id="u_jsonp_4_3">
我使用 javascript 代码输入了一个名称。
document.getElementsByName('freeform')[0].value = '" + textBox2.Text + "';
但是没有按钮可以点击,我正在使用SendKeys.Send("{ENTER}") 事件点击enter。
问题是 SendKeys.Send 对我来说不够用,我想用其他方式按 enter 键。
如何在不使用SendKeys.Send 的情况下按回车键?
【问题讨论】:
标签: javascript jquery html click enter