Delegates | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1


Are there delegates in js?

10th Sep 2020, 9:06 PM
Adrián Valdés
Adrián Valdés - avatar
3 Answers
+ 4
the jQuery delegate() Method attaches one or more event handlers for specified elements that are children of selected elements, and specifies a function to run when the events occur. Event handlers attached using the delegate() method will work for both current and FUTURE elements (like a new element created by a script). Learn more:
10th Sep 2020, 9:29 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 2
10th Sep 2020, 9:08 PM
BroFar - avatar
+ 1
10th Sep 2020, 9:09 PM
Adrián Valdés
Adrián Valdés - avatar