alert(opt); is now displaying the word 'test'
What am I doing wrong?
Code: Select all
function psCallback() {
var content = 'test';
return content;
}
jQuery(document).ready(function () {
var opt = {callback: psCallback};
alert(opt);
return false;
});