#12680 closed bug (wontfix)
the .toggle() method's bug
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Note: See
TracTickets for help on using
tickets.
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.