Onchange Event for Text Area
11,375
This works for me in Firefox:
<textarea oninput="alert('input detected')";>initial input text</textarea>
Author by
Sam M
Updated on June 04, 2022Comments
-
Sam M almost 2 years
I have been trying to use and onchange event on a text area however nothing has been working. the normal change() or onChange() functions do nothing at all.
I have Tried things like
$('#areaName').on('input', function(){}) $('#areaName').bind('input', function(){})
I have tried eveything solution i have found online to no avail.
I just need the piece of code to trigger a function when the text in the text area has been modified in anyway.
-
cfnerd about 4 yearsthat's jquery, not javascript