I have a string that if I turn it into OBJ it works correctly.
var obj = JSON.parse('{ "placeholder": "Hello...."} ');
then I put it in the tagEditor plugin in this way $('textarea').tagEditor(obj);
But I also need to evaluate within if there is a function and that it works, in this way.
var obj = JSON.parse('{ "placeholder": "Hello....", "onChange":"function(a,b,c)}{ }"} ');
and I put it....... $('textarea').tagEditor(obj);
but when I do that I get error Uncaught SyntaxError: Unexpected string in JSON at position 38
Actually I want to evaluate the function that is by string, As you can see when I put the event "onchange" and the function within the object this has to evaluate it for the plugin to work Does anyone know how to solve that problem?
SyntaxError)