---
title: "What is $.disconnect significance and how it is different from $.disconnectAll ?"  
description: "What is $.disconnect significance and how it is different from $.disconnectAll ?"  
author: "Anonymous User"  
published: 2011-10-17  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/1303/what-is-disconnect-significance-and-how-it-is-different-from-disconnectall  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# What is $.disconnect significance and how it is different from $.disconnectAll ?

In jQuery to disconnect one function from another function then $.disconnect is used. Once this statement gets executed, function gets disconnected from reference function and the connected function will not be executed after the code.\
**Syntax:** $.disconnect function is used to disconnect connected functions.\
$.disconnect(a,'fun1',b,fun2)

Where fun1 is the reference function and fun2 is connected function. Here a, b are objects.

**Syntax:** $.disconnectAll function is used to disconnect all connected functions.\
$.disconnectAll(a,'fun1');

## Answers

### Answer by Anonymous User

In jQuery to disconnect one function from another function then $.disconnect is used. Once this statement gets executed, function gets disconnected from reference function and the connected function will not be executed after the code.\
**Syntax:** $.disconnect function is used to disconnect connected functions.\
$.disconnect(a,'fun1',b,fun2)

Where fun1 is the reference function and fun2 is connected function. Here a, b are objects.

**Syntax:** $.disconnectAll function is used to disconnect all connected functions.\
$.disconnectAll(a,'fun1');


---

Original Source: https://www.mindstick.com/interview/1303/what-is-disconnect-significance-and-how-it-is-different-from-disconnectall

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
