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);
});
Xyz
  • 5,955
  • 5
  • 40
  • 58

0 Answers0