Home

Javascript “$” Function Name

Apparently Javascript will allow functions to be named simply "$". Some clever people who noticed that they were using a lot of document.getElementById() placed that into a function so they can use $("element_id") to refer to HTML elements. What a great convention!

More details here http://www.ajaxian.com/archives/2005/06/prototype_and_d.html

Related Posts

Comments are closed.