getElementById not working in child page

Apr 12, 2008 at 8:00 PM
Edited Apr 12, 2008 at 8:30 PM
Essentially ,

i have, in my aspx page:

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

firebug is telling me that mydiv is null....has anyone else had this problem?

oops! ~ sorry wrong forum ... i mean't to post this on the Facebook.NET forum, but heh, if anyone knows anything about that framework i wouldn't mind hearing. Thanks!
May 3, 2008 at 12:35 PM
That should work, are you using a MasterPage?
May 3, 2008 at 2:58 PM
sorry i didn't clear this up. I figured this out sometime ago.