Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
88
rated 0 times [  91] [ 3]  / answers: 1 / hits: 59465  / 15 Years ago, sat, january 30, 2010, 12:00:00

What does the $() function do in the following example?



function test(){
var b=$('btn1');
eval(b);
}

More From » javascript

 Answers
56

That's not part of ECMAScript (JavaScript). It's just a function defined by some library of yours. Usually jQuery or PrototypeJS.


[#97708] Wednesday, January 27, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
makaylahk

Total Points: 166
Total Questions: 94
Total Answers: 117

Location: Gabon
Member since Sat, Jul 25, 2020
4 Years ago
;