Topic: JS function with xajax.$
This might be silly and do to a brain fart on my part....
How do I pass a parameter into the xajax.$ function
eval() maybe?
Code: Javacript
function addOption(selectId, txt, val)
{
var objOption = new Option(txt,val);
xajax.$(selectId).options.add(objOption);
}
I am using xajax 0.5 4b.
Any help is appreciated.