If I insert the following HTML statically, the CSS style is correctly applied.
HTML:
<li class="connector">
<a href="#">
<img src="css/images/temp/connector2.png" alt="" width="192" height="192">
<span class="sr-only">box</span>
</a>
</li>
However, when attempting to dynamically render the HTML using JavaScript, it seems that the CSS does not get applied.
JavaScript:
element.innerHTML += "<li class='connector'>" +
"<a href = '/connector/" + i + "'>" +
"<img src ='/" + i + "/background' />" +
"<span class='sr-only'>" + $.get("/" + i + "/getName") +"</span>" +
"</a>" +
"</li>";
The list displays, but without the expected CSS styling. Any ideas on how to address this issue?