Hi
I'm using prototype in javascript but cannot for the life of me find how to use variables in node queries.
For example:
$$('#menu a');
returns a elements within a node with id 'menu'.
How can i do this:
var abc = 'menu';
$$('#abc a');
??
Thanks in advance.
I'm using prototype in javascript but cannot for the life of me find how to use variables in node queries.
For example:
$$('#menu a');
returns a elements within a node with id 'menu'.
How can i do this:
var abc = 'menu';
$$('#abc a');
??
Thanks in advance.