Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • .keyup() method in jquery

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 182
    Comment on it

    .keyup() method is used to bind an event handler with the keyup javascript event. Suppose we have an input field and we want to invoke an alert box for each key we press. Then, the event handler should be bind to that input field.

    Example:

    test.html

    <input type="text" id="email"></textarea>
    <input type="submit" value="Send" class="register"/>
    

    abc.js

    $(document).ready(function(){
        $('.register').prop('disabled',true);
        $('#email').keyup(function(){
            alert("key pressed");
    
        })
    }); 
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: