I have an oninput event on a textarea to check the height and resize it. Now I need to edit the value sometimes. I do this just by editting the val() in jQuery, but that doe
You can simply invoke it, e.g.:
$("input")[0].oninput = function () { alert("hello"); }; $("input")[0].oninput();
...but as @Sammaye points out, jQuery has no explicit "oninput" handler, so you'll have to use POJS.
Demo on JS Fiddle.