HTML:
5条回答 不知归路 (楼主) 2020-12-01 14:39 Try to add a pointer cursor to the button and use .on to bind the click event. $('#button1').css('cursor','pointer'); $(document).on('click', '#button1', function(event) { event.preventDefault(); alert('button1'); }); 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Try to add a pointer cursor to the button and use .on to bind the click event.
$('#button1').css('cursor','pointer'); $(document).on('click', '#button1', function(event) { event.preventDefault(); alert('button1'); });