A row in a table where each first cell contains a link needs to be clicked and open a url.
14条回答 暖寄归人 (楼主) 2020-12-29 08:28 Have you tried stopping immediate propagation when you click the link?This way you should stop the recursion $('a').click(function(e){ e.stopImmediatePropagation(); alert('hi'); }); fiddle here: http://jsfiddle.net/3VMGn/2/ 0 讨论(0) 查看其它14个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Have you tried stopping immediate propagation when you click the link?This way you should stop the recursion
$('a').click(function(e){ e.stopImmediatePropagation(); alert('hi'); });
fiddle here: http://jsfiddle.net/3VMGn/2/