In Safari, the toggle event is skipping a function. Here's an example
of what it's doing:
[code]
$("a").toggle(
  function () {
        $(this).css({"list-style-type":"disc", "color":"green"});
  },
  function () {
        $(this).css({"list-style-type":"disc", "color":"red"});
  },
  function () {
        $(this).css({"list-style-type":"", "color":"black"});
  }
);
[/code]

In this example, when I click on a link the first time, its color
changes to red. When I click a 2nd time, it goes to green. The third
click changes the link color to black. It SHOULD be going green, red,
black. As you can see, it's skipping a function each time.

The code works in Firefox and IE. I'm using Safari 3.1.2. Any
suggestions?

Reply via email to