NewTechGuy
13 Nov 2009, 01:28 PM
echo "<div id='d1' onclick=\"alert(this.style.backgroundColor)\" width='100%'>content</div>";
This line of code is working but for some reason it is returning an empty string. I have set the css background color of the div in internal(not inline) css above the div. What am I missing here?
Thanks,
NewTechGuy
This line of code is working but for some reason it is returning an empty string. I have set the css background color of the div in internal(not inline) css above the div. What am I missing here?
Thanks,
NewTechGuy