Change event

by fido3993

HTML

<form action="" >
<input type="text">
<p>
Write something in the input field and press enter.
</p>
</form>

JavaScript

$(document).ready(function() {

$(input).change(function () {
alert("The text has been changed.")
})

})