page.select problems

i'm trying to go through the second edition of Agile Web Development
With Rails and i'm stuck on a small problem that's driving me crazy.

I'm trying to use the following code...

page.select("div#notice").each { |div| div.hide }

to hide the div tag on my page with an id of notice <div id="notice">

I've verified that the div tag does exist on the page by viewing the
source, and i've gotten all the other javascript thus far to work, so i
don't think it's a browser issue.

Any help would be greatly appreciated.

Thanks,

mike