onkeyup Event Jquery

The jQuery onkeyup event occurs when a keyboard button is released after pressing. This method is executed or attach a function to run when a onkeyup event occurs. You may also like How to trigger jQuery change event in Checkbox and Onsubmit event using ajax and return true but Form not submit using Jquery.

HTML Code

<input type="text" onkeyup="myFunction($(this).val())">

Javascript Code

<script type="text/javascript">
    function myFunction(value)
    {
        alert(value);
    }
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *