0

I've been trying to style the postal code like the staff version, but without success. The code runs if I enclose <%- postal_code %> with the <span> tag, but if I try to add an id, something like

<span id="me"> or <span style="color:blue">,

then the code doesn't run and I get this error at the console Uncaught SyntaxError: missing ) after argument list, and this points to the line in the scripts.js.

I know the staff solution added a specific styling to styles.css, but I can't quite grasp how to encapsulate the variable to activate that styling. Any hints would be appreciated :)

0
0

After a lot of searching, I finally did it. I worked it out by using the <span> tag in the js file and adding, in the styles.css file, some styling to the span tag of that specific paragraph. Quite simple logic, only had to find out the right way to "spell" it :)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .