I need to simulate an enter in jquery I have the following code:
$('').trigger(jQuery.Event('keypress', { keycode: 13 }));
But this is done on an element, with an id or class, I need to generate the enter automatically without needing to refer to an element. I hope to explain myself, I am attentive to your answers.