JqueryNo Comments

default thumbnail

We can get the value of input type field on key up. As we do key up in input field, we get the value in a variable. Then we can set the value where we want.

HTML

<input type="text" id="text_val">

Jquery

<script type="text/javascript">
    $(document).ready(function(){
        $("#text_val").keyup(function(){
            alert($(this).val());
        });
    })
</script>

Be the first to post a comment.

Add a comment