you can create a click event like this.
$("#elementId").trigger("click");
but I am confused, how can we raise the 'enter' event in a similar way? I searched through the internet, and one of the ways I found was,
$("#elementId").trigger("keypress",[13]);
but it does not work for me? It is right? or is there any other way to do this?
source
share