Here\'s the snippet of html i have:
4条回答 伪装坚强ぢ (楼主) 2021-02-05 15:32 Write your code inside document.ready and use e.preventDefault Write like given below : $(document).ready(function(){ $("#tag-cloud-widget .content a").click(function(e) { e.preventDefault(); alert('Clicked'); return false; }); }); 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Write your code inside document.ready and use e.preventDefault
document.ready
e.preventDefault
Write like given below :
$(document).ready(function(){ $("#tag-cloud-widget .content a").click(function(e) { e.preventDefault(); alert('Clicked'); return false; }); });