Using keyup in jquery

To call a method after key has been released after being pressed we can use keyup method. This method will be called after releasing the key.

<input type="text" id="txtName" />

<script type="text/javascript">

    $(function () {
        $("#txtName").keyup(function () {
            alert("keyup event has fired");
        });
    });
   

</script>

Comments

Popular posts from this blog

Check if ViewBag is null or doesn't exist

Using Progress Bar In C#

Jquery serer side datatables in asp.net