I have a jquery code(toggel) which is working fine in IE6 but not in FF3.
what can be the reason or workaround.
<button>Toggle Me</button>
<p>Hi</p>
<p>Learning JQuery</p>
Jquery:
$(function() {
$("button").click(function() {
$("p").toggle("slow")
});
});
CSS:
p
{ background:#dad;
font-weight:bold;
font-size:16px;
}
I would be inclined to use
instead of
and then change your code to
You were missing a
;aftertoggle("slow")which IE may forgive you for but other browsers may be less forgiving.Working Demo