I’m trying to pass a string like this:
{"key":["value"],"key2":undefined,"key3":undefined,"key4":undefined,"key5":"value"}
to a javascript-function like this:
<a href="#" onClick="myFunction(myString);">
but can’t get the escaping right. Is there a way to pass that object-string to a function or do I need to convert something?
Greetings,
Select0r
try:
EDIT:
In light of your recent comment I went back to the browser and tried this (works for me):
The change means that it’s no longer longer passed as a string but as an object parameter to myFunction.