Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dollar sign in javascript methods

Can someone explain the usage of the dollar sign here..

var updateProgressDiv = $get('updateProgressDiv');

scroll down to the functions.. http://mattberseth.com/blog/2007/05/ajaxnet_example_using_an_updat.html

like image 606
madcolor Avatar asked Apr 13 '26 09:04

madcolor


1 Answers

It's merely part of the function name -- $ is allowed in JavaScript identifiers, so ($get) is the full function name.

like image 63
John Millikin Avatar answered Apr 14 '26 23:04

John Millikin