#1219 closed bug (fixed)
toggle() without parameters runs animation
Reported by: | nlogax | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1.3 |
Component: | effects | Version: | 1.1.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I noticed in the 1.1.3 alpha that my toggle():s were running animations all of a sudden, when they should just toggle display betwen block and none.
Change History (5)
comment:1 follow-up: 2 Changed 16 years ago by
comment:2 Changed 16 years ago by
Replying to hobbit:
The show and hide animations don't work if we add the speed parameter to the methods, and the display style is set to none.
<html> <head> <title>Test page</title> <script type="text/javascript" src="jq.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#first").hide(1); $("#second").click(function(){ $("#first").show(1); }); }); </script> </head> <body> <div id="second">Click here</div> <div id="first" style="display:none">First item</div> </body></html>
Note: See
TracTickets for help on using
tickets.
The toggle method doesn't work if it restarted under animation. A simplified sample page: