it is possible to generate a click event like this.
$("#elementId").trigger("click");
but I am confused how we can generate an 'enter' event similarly? I searched through internet and one way I found was,
$("#elementId").trigger("keypress",[13]);
but this is not working for me? Is this is correct? or is there any other way to do this?