Want to fire alert when somebody leaves the textbox that is in a partial view in a asp.net mvc 4 application. Wont work for me. no error just not working. my code Jquery
$("#username").on('focusout', 'input', function () {
alert("Lost Focus");
});
Html in the partial View
<div class="form-group">
<label class="col-sm-6 control-label forms">UserName</label>
<div class="col-sm-3 input-container">
<input type="text" name="Username" id="username"/>
</div>
</div>