I'm trying to prevent user input into a textarea with Javascript.
Why doesn't this work?
$("textarea").on("input", function (e) {
console.log("returning"); //This prints
e.preventDefault();
return false;
//Even though this code runs when text is inputed into the textarea, it still doesn't prevent user input. Shouldn't returning false do that?
});