getElementById not working in child page

Apr 12, 2008 at 7:00 PM
Edited Apr 12, 2008 at 7:30 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>

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 11:35 AM
That should work, are you using a MasterPage?
thanks.
May 3, 2008 at 1:58 PM
sorry i didn't clear this up. I figured this out sometime ago.