Avatar of jazzIIIlove
jazzIIIlove
Flag for Sweden asked on

basic jquery question for a 12 year old. What is $(this). What is this this?

Hi;

In jquery, what is $(this). What is this this? and what is not?

Regards.
jQuery

Avatar of undefined
Last Comment
jazzIIIlove

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gary

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jazzIIIlove

ASKER
hI;

Thanks. so can i use #some-div-id  instead of this?

Also can i use this outside of the function?
And also is it possible to change the this reference inside the function (say to an a element having an id?

regards.
SOLUTION
Gary

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
jazzIIIlove

ASKER
hi,

great. one final question. you put in head. so is the whole code rendered before this jquery you posted?

regards.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
jazzIIIlove

ASKER
Informative.
Your help has saved me hundreds of hours of internet surfing.
fblack61