Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#12680 closed bug (wontfix)

the .toggle() method's bug

Reported by: [email protected] Owned by:
Priority: low Milestone: None
Component: event Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:


if the element has a link, then the link will can't be opened. 如果绑定的元素里有链接的话,这个链接就会无效。 <div id="aaa">test <a href="http://www.baidu.com" target="_blank">baidu</a></div> <script> $('#aaa').toggle(function(){alert('aaaaaaa');},function(){alert('bbbbbbb');}); </script>

Change History (2)

comment:1 Changed 10 years ago by dmethvin

Resolution: wontfix
Status: newclosed

The .toggle() event method has been deprecated as of jQuery 1.8. Although it will be available in a compatibility plugin for 1.9, we don't plan to make any enhancements or fix any of its shortcomings.

comment:2 Changed 10 years ago by dmethvin

Component: unfiledevent
Priority: undecidedlow
Note: See TracTickets for help on using tickets.