snippets
match elements from parent
waiting
waiting
waiting
- The
.prop()method maps to a search for the given key in a dataset using.closest(). - Sending and receiving elements can use this to determine if they are inside the same parent element.
- Doing a comparison in the signal function provides a way for a single function to work with a single set of sender/receiver elements regardless of the number on the page.
html
waiting
Send Alfa
waiting
Send Bravo
waiting
Send Charlie
javascript
;