I would like to use this style if an if statement runs. However Jquery seems to get confused with the syntax and gives me a bunch of errors. Does anyone know how I can escape the errors so I can still use the styling?
The Jquery that is giving errors looks like this:
$("#inject-toc-here > ol > li::before").css("content", "counters(item, ".") " "");
The normal css looks like this:
#inject-toc-here ol li::before {
content: counters(item, ".") " ";
}
The part that is giving errors is that second value for the css. The inverted commas by counters(item....)....
Thanks in advance :)