I want to change the background color of the table cell when radio button inside the cell is clicked.
2条回答 死守一世寂寞 (楼主) 2020-12-25 10:36 Use the change event of the select: $('#my_select').change(function() { $(this).parents('td').css('background', '#000000'); }); 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Use the change event of the select:
$('#my_select').change(function() { $(this).parents('td').css('background', '#000000'); });