
$(“#table tr”).click(function(){
$(this).addClass(‘selected’).siblings().removeClass(‘selected’);
var value=$(this).find(‘td:first’).html();
alert(value);
});
$('.ok').on('click', function(e){ alert($("#table tr.selected td:first").html());});欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)