I am calling a JavaScript function like this:
window[className + 'Click']();
The className var contains some other string, in the end, it calls a function like myClick() or whatEverClick(). Thats alright, but is there a way to make the first part case insensitive?
Examples:
classname = whatever --> call whatEverClick()
classname = whatEver --> call whatEverClick()
Is that possible? Thanks!