I am constructing an HTML snippet with a JavaScript function that injects into a div.
Can't figure out how to do the quote / double quote wrapping for a passed variable dynamically.
var vLC = "zh-CN"
var vHtml = "<input type='radio' id='rbtn1' onclick='renderList(" + vLC + ");' />";
This code renders: onclick="renderList(zh-CN);"
I need it to render: onclick="renderList('zh-CN');"
Any geniuses out there that know the Code?