How do I alternate between calling two functions on click? For example, here is the button
and here is the j
Use jQuery's toggle() method
$("#fooButton").toggle(fooOne, fooTwo);
Edited to make use of your named functions rather than sloppily using anonymous ones.