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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:07:51+00:00 2026-06-05T07:07:51+00:00

I inherited an application which uses jQuery 1.7.2. Throughout the application we have code

  • 0

I inherited an application which uses jQuery 1.7.2.

Throughout the application we have code like the below:

$('#quotation').off("click").on("click", function(){
     // do something here...
}

Now, I do understand the above no problem. However, occasionaly in our code I come across something like this:

$('#continue').off("click.products").on("click.products", function(){
     // do something here...
}

Throughout the application I find click.products or click.orders. It seems what ever following the . can be completly random text.

What is the difference between click and click.products?

  • 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-05T07:07:52+00:00Added an answer on June 5, 2026 at 7:07 am

    This code uses custom namespace event defined by them self or by a plugin.

    An event name can be qualified by event namespaces that simplify removing or triggering the event. For example, "click.myPlugin.simple" defines both the myPlugin and simple namespaces for this particular click event. A click event handler attached via that string could be removed with .off("click.myPlugin") or .off("click.simple") without disturbing other click handlers attached to the elements. Namespaces are similar to CSS classes in that they are not hierarchical; only one name needs to match. Namespaces beginning with an underscore are reserved for jQuery’s use.

    on docs

    Live DEMO:

    $('#a').on('click.bar', function() {
        console.log('bar');
    });
    
    $('#a').on('click.foo', function() {
        console.log('foo');
    });
    
    
    $('#b').click(function() {
        $('#a').trigger('click.foo');
    });​
    

    Now when clicking on #a both of the clicks handlers (foo and bar) will raise,
    But when clicking on #b only the foo will raise.

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

Sidebar

Related Questions

I have inherited a Grails app, which uses the Acegi 0.5.3 plugin. The application
I have inherited a code-base which uses a compiled logging library. I cannot update
I have 'inherited' a test harness application which uses Enterprise Library for its SQL
I've inherited a web application which strictly uses stored procedures to do its job.
I have inherited couple of .Net (C#) application which does not have any tracing
i have an application class inherited from QtGui.QDialog. I have to reload show-function but
I am using VS2005 ASP.NET 2.0. I have a web application which uses Active
I have an MVC application which uses a silverlight control. Somewhere along the line
We have an ASP.NET web application which uses ASP.NET Ajax. We open it from
I've inherited a web application which heavily uses Anthem.net. There is one operation which

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.