Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8872317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:11:35+00:00 2026-06-14T18:11:35+00:00

I am newbie to java script. I am bit confused about key-press and change

  • 0

I am newbie to java script. I am bit confused about key-press and change event.

Following is sample code

 $("input").live('change',function ()
    {
       Alert("Change event call");
    });

    /
    $("input").live('keypress',function ()
    {            
       Alert("Keypress event call");
    });

When exactly Keypress event is call and change event call?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:11:37+00:00Added an answer on June 14, 2026 at 6:11 pm

    Change event

    The change event is sent to an element when its value changes. This
    event is limited to <input> elements, <textarea> boxes and <select>
    elements. For select boxes, checkboxes, and radio buttons, the event
    is fired immediately when the user makes a selection with the mouse,
    but for the other element types the event is deferred until the
    element loses focus.

    Keypress event

    The keypress event is sent to an element when the browser registers
    keyboard input. This is similar to the keydown event, except in the
    case of key repeats. If the user presses and holds a key, a keydown
    event is triggered once, but separate keypress events are triggered
    for each inserted character. In addition, modifier keys (such as
    Shift) trigger keydown events but not keypress events.

    A keypress event handler can be attached to any element, but the event
    is only sent to the element that has the focus. Focusable elements can
    vary between browsers, but form elements can always get focus so are
    reasonable candidates for this event type.

    References:

    • http://api.jquery.com/change/
    • http://api.jquery.com/keypress/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am newbie. many of javascript code start with <!-- <script type=text/javascript> <!-- and
I'm a Java newbie and ran into a bit of a problem. I want
A JavaScript newbie here. I have this following code: function testObject(elem) { this.test =
I've got a Bash script (50 lines of code) that requires a bit of
I am working with Google map v3. And i am newbie with java script.
I am very good java script developer, but newbie to flash. I have started
Javascript newbie here, just trying to tweak this bit of code. It checks for
I am a newbie to java script and currently reading John Resig's Pro javascript
I have just started working with nodejs. I am a java script newbie. I
I'm a newbie in XUL & Java-Script programming. I just realized that I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.