I’ve looked for solutions, but couldn’t find any that work.
I have a variable called onlyVideo.
onlyVideo
\"onlyVideo\" the string gets passe
\"onlyVideo\"
You can do like this
var name = "foo"; var value = "Hello foos"; eval("var "+name+" = '"+value+"';"); alert(foo);