How to perform text change event In jquery?

The change event occurs when the value of an element has been changed (only works on <input>, <textarea> and <select> elements).

The change() method triggers the change event, or attaches a function to run when a change event occurs.






<!DOCTYPE html>



<script src=””></script>




    alert(“The text has been changed.”);






<input type=”text”>

<p>Write something in the input field, and then press enter or click outside the field.</p>