I was wondering which is the way to make this simple (and maybe stupid) thing with jQuery.
I have a function like this:
function setSomething() {
make some stuff;
}
and then another function like this:
generalFunction(par1, par2, par3) {
do other stuff;
execute function called in par3;
}
Well, if I write something like this it doesn't work:
c=setSomething();
generalFunction(a, b, c);
So what's the way to call a function as a parameter of another function and then execute it inside?
I hope I was clear enough.
Any help will be appreciated.
Thank you in advance for your attention.