I was thinking the is it possible to pass a variable to function which is to be executed on clicking the button and the function is given by a variable.
Also the parameters of the functions could be more than one and so I separated them by ,.
So is there a way that I can put the parameters into function using any jQuery plugin or a function. Please help me out, cause I'm confuse big time! Here is my current jQuery Code:
function Func (a,b){
alert(a+' | '+b);
}
var Parameters = 'cool,123';
var Function = Func;
$('button').click(Function);
Thanks in advance