jakubrwisniewski
1/21/2016 - 8:38 AM

Clipboard cut and copy native

Clipboard cut and copy native

var input = $('input').first();

input.on('focus', function() {
  input.select(); //select input content
  document.execCommand("cut"); //or "copy"
});