Hello all,

 

I am just starting my jquery experience and I ran into a little problem.

 

Here is the setup – I have a form that I want to keep hidden until the user clicks on a certain spot. Once the user clicks this spot the form should show itself with a nice transition. The user can then either submit the form or click in the same spot to hide the form.

 

Here is the code –

  $("#newAnnouncement").click(function(){

                if(document.getElementById('announcement_form').style.display == "none")

                {

                                $("#announcement_form:hidden").show("slow");

                }

                else

                {

                                $("#announcement_form:visible").hide("slow");

                }

                });

  });

 

This works great in FireFox, but in I.E., the form is displayed, but with no transition (it is either visible or not)

 

Help,

Roy

 

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to