📜  如何将输入事件发送到输入字段 jquery - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:25.995000             🧑  作者: Mango

代码示例3
var e = jQuery.Event("keydown");
e.which = 13; //choose the one you want
e.keyCode = 13;
$("#theInputToTest").trigger(e);