How do I attach an event to a hidden element in javascript
<p>There is an element on the page that is set to display: none in CSS but I want to attach an event to it so that when I make it visible I can click on the element. I keep getting a strange error with it. Thanks for any help you could give me. </p>

<p>Edit:
The strange error is that I can't seem to get the event to attach to the element.</p>

<p>Edit:
I am no longer getting an error but I am not sure why I am not getting the error anymore. In any case, thanks for your help.</p>
