document.getElementById('SomeDiv') returns null

Apr 12, 2008 at 8:33 PM
Edited Apr 13, 2008 at 6:38 PM
Essentially ,

i have, in my aspx page:

<script>var mydiv = document.getElementById('SomeDiv'); mydiv.style="border: 1px solid blue;width:30px;height:30px;"</script>
<form>
<somecontrols...
<div id="mydiv></div>
</form>

edit: never mind this post...

firebug is telling me that mydiv is null....has anyone else had this problem? Thanks!
Apr 19, 2008 at 5:00 AM
Disregard this entire post....there is no way for me to delete it. Long story short it was a small detail in my js that i missed.