This now works for IE FF Chrome properly... I have not tested for other browsers though
$(document).ready(function(){
$('#txtInput').on("cut copy paste",function(e) {
e.preventDefault();
});
});
编辑:正如webeno所指出的,.bind()
已被弃用,因此建议改用.on()
.