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 7846405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:34:18+00:00 2026-06-02T17:34:18+00:00

I am new to JavaScript/jQuery and I’ve been learning how to make functions. A

  • 0

I am new to JavaScript/jQuery and I’ve been learning how to make functions. A lot of functions have cropped up with (e) in brackets. Let me show you what I mean:

$(this).click(function(e) {
    // does something
});

It always appears that the function doesn’t even use the value of (e), so why is it there so often?

  • 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-02T17:34:21+00:00Added an answer on June 2, 2026 at 5:34 pm

    e is the short var reference for event object which will be passed to event handlers.

    The event object essentially has lot of interesting methods and properties that can be used in the event handlers.

    In the example you have posted is a click handler which is a MouseEvent

    $(<element selector>).click(function(e) {
        // does something
        alert(e.type); //will return you click
    }
    

    DEMO – Mouse Events DEMO uses e.which and e.type

    Some useful references:

    http://api.jquery.com/category/events/

    http://www.quirksmode.org/js/events_properties.html

    http://www.javascriptkit.com/jsref/event.shtml

    http://www.quirksmode.org/dom/events/index.html

    http://www.w3.org/TR/DOM-Level-3-Events/#event-types-list

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

Sidebar

Related Questions

I have just started learning Jquery and am new to writing javascript (I am
i am new to javascript and jquery. I have downloaded fadeslide show. i am
I'm really new to JavaScript and jQuery. My question is this. I have two
I'm new to JQuery/Javascript etc... based on the following article: How to make an
I am new to javascript and jquery. I have written some javascript code for
I'm new to JavaScript and jQuery. I want to click a button and have
I'm new to javascript/jquery. I have the following basic code and I keep receiving
I'm brand new to Javascript and JQuery, so I've been reading up on it
I am new to JavaScript and jQuery, but have used HTML and CSS before.
I'm pretty new to javascript and jquery, and have run into a problem that

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.