[Demo] jQuery TextBox onChange Event

[Demo] jQuery TextBox onChange Event

by agentmilindu

HTML

<input type="text" class="in">
<br/><br/>
<input type="text" class="in">
<br/><br/>
<textarea id="console" style="width:100%;height:400px"></textarea>

JavaScript

$('.in').change(function () {
    console.log("change");
    $('#console').append("change\n");
});
$('.in').blur(function () {
    console.log("blur");
    $('#console').append("blur\n");
});