I have this code:
facetsString += "<td><input type='checkbox' value=facetList[count].term> " + facetList[count].term + " (" + facetList[count].count + ")" + "</td>";
I’m trying to give each checkbox a unique value facetList[count].term, but I don’t know how to escape the double quotes…
You can escape double quotes like this:
The solution is:
The example provided would write
facetList[count].termin the value attribute, and not the actual value of the variable.