6
rated 0 times
[
13]
[
7]
/ answers: 1 / hits: 93317
/ 14 Years ago, thu, january 20, 2011, 12:00:00
I am trying to prevent the enter key from being put into a textarea, but it doesn't seem to work.
$('#comment').keyup(function(event) {
if (event.text.charCodeAt() == '10') {
event.preventDefault();
}
});
More From » jquery