[Javascript] Hopefully quick question.

Conyers, Dwayne dwayne.conyers at hp.com
Sun Oct 4 20:57:58 CDT 2009


Troy III Ajnej ink wired:

> I wonder though:
>
> -Why do people use things like: 
>
> var Obj = $('mydiv'); now?
>
> I mean - instead of the "beloved": 
>
> document.getElementById('mydiv');


I can understand enforcing standards in regards to CSS, but when it comes to writing code a programmer will rely on what works for him/her -- especially when they have a library they prefer.

Just my 2¢.


-- 
The generation that took acid to escape reality is now taking antacid to deal with reality
http://blog.dwacon.com
http://www.twitter.com/dwacon









More information about the Javascript mailing list