0

I have a button. Now when I click on the button the ctrl+s will be pressed or triggered in jquery or javascript. How to do that?

I have tried:

$("#Save").click(function() {
    var e = $.Event( "keydown", { keyCode: 115, ctrlKey:true} );
    $("body").trigger(e);
});
Aron Cederholm
  • 5,612
  • 5
  • 39
  • 56

0 Answers0