...

View Full Version : $('test')



otnj2ee
10-06-2008, 09:37 PM
What kind of expression is this: $('test')?

var element = form[elementId];

What is the difference between:

element.value and $(element).value ?



Thanks


Scott

ubh
10-06-2008, 09:47 PM
I believe $(anything) in JavaScript is referring to the JS library called Prototype.
I dont use prototype so I might be wrong here.

Never the less check out the following site:
painless-javascript-prototype (http://www.sitepoint.com/article/painless-javascript-prototype/)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum