Possible Duplicate:
How do you handle oncut, oncopy, and onpaste in jQuery?
$(document).ready(function() {
$('#Description').bind('keyup', function() {
var characterLimit = 350;
var charactersUsed = $(this).val().length;
if (charactersUsed > characterLimit) {
charactersUsed = characterLimit;
$(this).val($(this).val().substr(0, characterLimit));
$(this).scrollTop($(this)[0].scrollHeight);
}
});
});
This is my code. I am trying to paste some content in description box using mouse right click paste, but it is not handled by the code. I don't know where it goes wrong, can anybody help on fixing this for me.
Thanks in advance