Here's exactly the function that you need.

http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C...

On Dec 15, 8:56 am, theCrandallSter <thecrandalls...@gmail.com> wrote:
> I am not exactly sure what you are doing with the positioning, but
> try .toggle() instead perhaps?
>
> Cheers
>
> On Dec 15, 11:13 am, "Alfredo Alessandrini" <alfreal...@gmail.com>
> wrote:
>
> > I've a simple question..
>
> > I'm writing a function that call an event on first mouse click and
> > call another event on second mouse click.
>
> > But I've some problem, because work only the first mouse click:
>
> > jQuery(document).ready(function() {
> > $(".menu a").click(function() {
> >     $(this).next("em").animate({opacity: "show", top: "-205"}, "slow");
>
> >     $(this).next("em").animate({opacity: "hide", top: "-205"}, "fast");
>
> >         });
>
> > });
>
> > Any help.. :-)
>
> > Thanks in advance,
>
> > Alfredo

Reply via email to