RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1162 | Replies: 3 | Solved | Thread Tools  Display Modes
Reply
Join Date: Feb 2008
Posts: 2
Reputation: pi415 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
pi415 pi415 is offline Offline
Newbie Poster

Help $('idname') means what?

  #1  
Feb 2nd, 2008
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,
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 337
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 34
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: $('idname') means what?

  #2  
Feb 2nd, 2008
no it didnot return any dom object taking id. if u want to do that u should use getElementById('idname') method of document object.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Feb 2008
Posts: 2
Reputation: pi415 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
pi415 pi415 is offline Offline
Newbie Poster

Solution Re: $('idname') means what?

  #3  
Feb 2nd, 2008
OK, I finally found the answer to my own question: Not sure what the best reference is, but here is one that lists some common functions and includes the $(), or if you want to find it via google the dollar function:

http://www.dustindiaz.com/top-ten-javascript/
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 7,176
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 26
Solved Threads: 396
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: $('idname') means what?

  #4  
Feb 3rd, 2008
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().
I don't accept change. I don't deserve to live.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Other Threads in the JavaScript / DHTML / AJAX Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:59 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC