I have a javascript function defined like this
function is_mandatory(string){
if(string.length > 0 )
return true;
}
Now, i am trying to call the function defined as a sting name
var is_mandatory;
is_mandatory("Check");
But, this returns an error saying variable is not a function. How can I call the function from a string name.
Cheers!