so I have a button with this event:
onmousedown="hideElements('\x22cartview\x22,\x22other\x22')"
and then this function hideElements:
function hideElements(what)
{
var whichElements=[what];
alert(whichElements[0]);
}
I want it to alert "cartview" but it alerts
"cartview","other"
I am aware of the arguments object but in this case I don't know how to use it to access the individual strings that are comma separated. Probably there is an easy solution but I am kind of new to this. Thanks!