I have this code:
<div data-role="page" id="two">
<div data-role="content" >
<div id="pic1"></div>
</div>
and this javascript code:
<script type="text/javascript">
document.getElementById("pic1").setAttribute("background-color","red");
</script>
The problem is that my div doesn't get the red color as a background! What's wrong?