Here is a very very very simplified example.
I am trying to pass a function name "show" or "hide" as a parameter.
but it wont work , can you please help?
if(a==true){
showOrhide (hide);
}else{
showOrhide (show);
}
var showOrhide = function(doThis){
$("#myDiv").doThis();
};