So I have this example here where I have javascript variable "id" which I want to put into a divs id.
<div id="(var id here)" style="width:100px; height:100px; border:5px solid black; ">
</div>
<script>
var id;
var color = blue
$('#(var id here)').css({"background-color" : color});
</script>
This is just an example and it's important that the div id is the variable id, not just a name. Hope someone can help me. Ask me if you don't understand! Thanks