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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:07:17+00:00 2026-05-23T09:07:17+00:00

Can we callback jquery function with selector in another jquery function ? Like I

  • 0

Can we callback jquery function with selector in another jquery function ?
Like I have two jquery functions

// Function 1: 
   $("#slideUp").click(function(){
      $("#testDiv").slideUp("slow",CALLBACK);
   });

// Function 2: 
   $("#slideDown").click(function(){
      // Do some stuff
   });  

How can I call Function 2 in Function 1’s callback ?

*EDIT: Adding correct terminologies *

Can we callback one jquery listener with selector in another jquery listener ?
Like I have two jquery listener

// Listener 1: 
   $("#slideUp").click(function(){
      $("#testDiv").slideUp("slow",CALLBACK);
   });

// Listener 2: 
   $("#slideDown").click(function(){
      // Do some stuff
   });  

How can I call Listener 2 as Listener 1 callback ?

I want to execute click listener of slideDown once testDiv is silde up.
Thank you Spycho.

~Ajinkya.

  • 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-23T09:07:17+00:00Added an answer on May 23, 2026 at 9:07 am

    If you mean you want to trigger a click on the element with ID slideDown then use $("#slideDown").click() in your callback function. That will trigger the event handler for that element.

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

Sidebar

Related Questions

in jQuery you can write something like $(selector).bind('click', function(e) { // something was true
Here is the jQuery slideToggle function: $('.class').click(function() { $(this).parent().next().slideToggle('slow', function() { // how can
jQuery's getScript function doesn't seem to support an error callback function. I can't use
PHP functions such as 'array_map' take a callback, which can be a simple function
By using jquery ajax function, I can do something like: $.ajax({ url: url, type:
How can callback functions help me in my development? Especially with PHP. I am
This my jquery function, function getRecordspage(curPage, pagSize) { // code here $(.pager).pagination(strarr[1], { callback:
I have a page with some jQuery, and a separate non-jQuery function. Currently my
I'm using this plugin: http://www.fyneworks.com/jquery/star-rating/ Is it possible to put a click function inside
I'm new to jQuery, but just attempting to create a function I can use

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.