Side navigation
#12680 closed bug (wontfix)
Opened October 09, 2012 08:17AM UTC
Closed October 09, 2012 01:02PM UTC
Last modified October 09, 2012 01:02PM UTC
the .toggle() method's bug
Reported by: | phpqhz@gmail.com | 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>
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.