I am calling a jquery function from .aspx page as follows
<body onload="JavaScript:createPanels('[{a,b,c,d,e}]')">
in my jquery I have function defined as
function createPanels(requiredButtons) {
var abc = JSON.stringify(requiredButtons)
abc.each(function (key, value) {
alert(value);
});
}
Now the issue is that I am not getting any alert.
Can any one point me where am I going wrong?
eachlike that it'd have to be on a jquery object, so$(abc).each. Otherwise you would call$.each(abc, ...). It's in the docs..forEach