It is necessary that when the input field changes, any function is executed.

As I understood, the "oninput" event is responsible for changing the text field.

The problem is that the code after the "oninput" event is not working.

I tried this:

$("#enter").oninput(function () { alert("чтот получилось") }) 

so :

 $(document).ready(function() { var input = document.getElementById('enter'); input.oninput = function() { console.log("ghbdtn") console.log(input) } 

});

Perhaps you can solve it somehow?

    3 answers 3

    There is no such event in jQuery, a list of available events for forms: link ! For mouse events: link !

      JQuery has a .change () event. In your situation, I think it is necessary.

        This is jQuery!

         $("#enter").on('input', function () { 

        But in general, you hardly need this event.