Hi,

I have a problem with the following function,

 function flipper(clicked, idone, idtwo) {
       $(clicked).toggle(
           function() { //first
               $(idone).toggle();
               $(idtwo).toggle();
           },
           function() { //second
               $(idtwo).toggle();
               $(idone).toggle();
           }
       );
    }

It seems like $(clicked).toggle builds up a stack and every time the
function flipper gets called it executes the appropriate function but then
steps down the previously clicked stack. It also doesn't hit a function the
first time flipper is executed

so it will go,

nothing

first

second / first

second / first / second

etc.


Kind Regard,

Eugene Louw
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to