Get function name from a string.
var formcheck = "function_name";
if (typeof window[formcheck] === 'function'){
formok = window[formcheck]();
e.preventDefault();
}
var formcheck = "function_name";
if (typeof window[formcheck] === 'function'){
formok = window[formcheck]();
e.preventDefault();
}
function
function_name(){ alert("Checked"); return false; }
No comments:
Post a Comment