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

The Archive Base Latest Questions

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

In my page I define a group of the DOM elements with the same

  • 0

In my page I define a group of the DOM elements with the same click event (some of them are loaded dynamically)

$('div.main-container a.class1, a.class2').live('click',function(){ ... });

the element a.class1 and a.class2 has their own click functions, and in that scenario, my group click function does not fire. So, is it possible to bind two different click functions to the one DOM element ?

  • 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-11T06:04:01+00:00Added an answer on June 11, 2026 at 6:04 am

    Combine all the relevant handlers you need in a function and bind all the click events to something like this:

    function ()
    {
        handler1();
        handler2();
        handler3();
    }
    

    Cheers

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

Sidebar

Related Questions

In a Rails 3.2 app I define the page title using <% title Title
Any table I define with sidewaystable appears at the last page of created pdf
I have created a JSF 2 page which uses Facelets to define the structure
So, as described on this msdn page , when you define a Connection String
On my JSP page, I defined some javascript with a variable that get value
The id 's on the page I'm working on are defined a group of
I am creating one asp page. In that page i defined one property like
This page in the Android documentation defines an element id as follows: <TextView android:id=@+id/label
I have a web page with swf file defined this way <object width=600 height=400
I have defined a function in which i want to open a page on

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.