Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
function $(id) 
{
  return document.getElementById(id);
}


What does this code do? Who can explain the meaning of it, especially the character "$".

Thanks.
Posted
Updated 11-Nov-10 22:38pm
v2
Comments
Arvind Wanjari 12-Nov-10 6:55am    
its syntax for jquery

1 solution

Hi,

Its a library function jQuery script.

Refer following site.

http://www.authenticsociety.com/blog/JavaScript_DollarSign[^]

http://stackoverflow.com/questions/846585/can-someone-explain-the-dollar-sign-in-javascript[^]

I hope links will help you to now about $ symbol.

Regards,
Kiran.
 
Share this answer
 
Comments
AngelLoose 12-Nov-10 21:07pm    
thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900