jQuery : $(document).on('click', '#id', function() {}) vs $('#id').on('click', function(){})

Channel:
Subscribers:
76,400
Published on ● Video Link: https://www.youtube.com/watch?v=zccSQsMKATM



Duration: 1:35
1 views
0


jQuery : $(document).on('click', '#id', function() {}) vs $('#id').on('click', function(){})
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

I promised to share a hidden feature with you, and here it is.
This is a YouTube's feature which works on Desktop.
First, Ensure that the video is playing before proceeding.
Then, type the letters 'awesome' on the keyboard.
Your YouTube progress indicator will turn into a shimmering rainbow.

An introduction to myself in a few words,
Greetings, my name is Delphi.
I am willing to help you find the solutions to your questions.
jQuery : $(document).on('click', '#id', function() {}) vs $('#id').on('click', function(){})
If you need more specific information, let me know by leaving a comment or starting a chat.
Your input is appreciated, so please leave a comment below with your answer or insights to the answer.
Providing an answer will be acknowledged and appreciated with a 'heart' from me.
{}) function(){}) $(document).on('click', '#id', jQuery : function() $('#id').on('click', vs