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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:52:34+00:00 2026-05-15T04:52:34+00:00

Is there any benefit to using .click() over .bind(‘click’) or vice-versa besides the amount

  • 0

Is there any benefit to using .click() over .bind('click') or vice-versa besides the amount of typing you have to do?

  • 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-05-15T04:52:35+00:00Added an answer on May 15, 2026 at 4:52 am

    Based on some very unscientific and very quick tests using .bind vs .click represents a 15% (roughly) speed up, as tested over 50,000 iterations of each.

    Its not huge, unless you’re binding massive numbers of events, but I’m always of the thought that making it faster when it takes no effort is something worth doing.

    My quick & dirty test: http://jsbin.com/ixegu/edit

    Other Benefits – Bind Multiple Events

    Since you accepted this answer, I thought I’d add a bit more. You can also bind multiple events with .bind, for example:

    $('#link').bind('mouseover focus', function() { ... });
    

    There’s another syntax for binding multiple events via the bind() method. From the docs:

    $("div.test").bind({
      click: function(){
        $(this).addClass("active");
      },
      mouseenter: function(){
        $(this).addClass("inside");
      },
      mouseleave: function(){
        $(this).removeClass("inside");
      }
    });
    

    Pass extra data on event with bind()

    Then there’s the ability to pass arbitrary data when you create the bind (only at the time you create the bind)

    <div id="link">Happy</div>
    <div id="otherlink">Sad</div>
    
    function myHandlerFunc(e) {
      alert('This is a ' + e.data.myVal + ' function.');
    }
    
    $('#link').bind('click', { myVal : 'Happy' } , myHandlerFunc);
    $('#otherlink').bind('click', { myVal: 'Sad' }, myHandlerFunc);
    

    The above alerts “This is a happy link” when you click on happy, and “This is a sad link” when you click on sad. See http://jsbin.com/idare/edit for an example.

    Read the docs

    You can always find out more here.

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

Sidebar

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.