What is Jquery Connect?

devquora
devquora

Posted On: Jan 14, 2023

 

JQuery Connect is a plugin that is used to bind or connect a function to another function. It executes a function when a function from another object is executed. It is similar to assigning a handler for another function. Connect also lets you connect a function to a DOM object. With connect, you bind more than one function.

Example

$.connect(obj1, 'fun1', onj1, fun2); 

Here we are binding the fun2 function of object 2 to the fun1 function of object 1. So, when fun2 is executed, fun1 will also be executed.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    jQuery Interview Questions

    What is jQuery?

    jQuery is a lightweight JavaScript library which gives a quick and simple method for HTML DOM traversing and manipulati..

    jQuery Interview Questions

    What are the advantages of JQuery ?

    There are many advantages of JQuery. Some of them are :It is more like a JavaScript enhancement so there is no overhea..

    jQuery Interview Questions

    What are the different type of selectors in Jquery?

    There are 3 types of selectors in JqueryCSS Selector XPath Selector Custom Selector..