how to detect which button is clicked using jQuery
4条回答 感情败类 (楼主) 2020-12-17 11:05 $(function() { $('input[type="button"]').click(function() { alert('You clicked button with ID:' + this.id); }); }); 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
$(function() { $('input[type="button"]').click(function() { alert('You clicked button with ID:' + this.id); }); });