Jump to content

just a quick question


Orionsbelter

Recommended Posts

I am very new to javascript i was looking over some code and found something i didn't understand

 

function scroll(d){
if(d == "up"){
	$("#log").scrollTo('-=100px',800);
} else {
	$("#log").scrollTo('+=100px',800);
}

 

my question is why is there a $ within the code as i know its not how they do variables is it too do with html or css elements?

 

thank you for reading and any help you can give :D

Link to comment
https://forums.phpfreaks.com/topic/192451-just-a-quick-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.