0

I cannot find documentation of this anywhere. I am assuming from context that this goes a id lookup of a dom object and returns the object. Is that correct? If someone could point me to documentation of this, I would greatly appreciate it. Thanks,

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by ~s.o.s~
0

no it didnot return any dom object taking id. if u want to do that u should use getElementById('idname') method of document object.

0

From the Ecmascript specification:

The dollar sign ($) and the underscore (_) are permitted anywhere in an identifier. The dollar sign is intended for use only in mechanically generated code.

The $() function is not standard javascript and is used by most libraries to stand for the most commonly used function : getElementById().

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.