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

  • SEARCH
  • Home
  • 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 7967143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:37:08+00:00 2026-06-04T06:37:08+00:00

Regarding the .trigger() method , the Event object , the which property , the

  • 0

Regarding the .trigger() method, the Event object, the which property, the JS char codes and the code below, why does the #example input don’t get the char a as auto-written value? Did I misunderstand the .trigger() method?

<input type="text" name="example" id="example" value="" />

<script>
$(function() {
    var e = jQuery.Event("keydown", { which: 65 });
    $("#example").focus().trigger(e);
});
</script>
  • 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-04T06:37:09+00:00Added an answer on June 4, 2026 at 6:37 am

    The mistake you’re making is what you’re expecting the jQuery’s trigger method to do. If you check out the code you’ll see that what it is doing is actually executing the jQuery registered event handlers not the DOM Level 3 events. Because it’s only executing jQuery handlers you wont be causing the change event which is what you need to be triggered to update the value property of the textbox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm receiving event notifications from web services that trigger event handlers with data regarding
Ok, does anyone have some good resources for Access 2007 features regarding triggers or
Regarding the worker pool, what happens when the computer restarts? Does the worker continue
Regarding: Delphi, VirtualStringTree - classes (objects) instead of records Does the memory increases or
I have a small doubt regarding BEFORE INSERT TRIGGER in oracle, my trigger looks
I have one question regarding trigger. The scenario is like this Create Procedure begin
I would like some feedback regarding the IService class listed below. From what I
I have the following questions regarding BLOBs in sqlite: Does sqlite keep track of
I have two problems regarding Android Services. First, I would like to know which
I'm considering using trigger.io to build an app which can upload videos. As videos

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.