标签:this logs log var tab his success onclick children
function updatHost(obj) { var tdObj = $(obj).parents(‘tr‘).children(‘td‘); var host_id = tdObj[0].innerHTML; var domitory_name = tdObj[1].innerHTML; var host_name = tdObj[2].innerHTML; var lived_number = tdObj[3].innerHTML; var total_number = tdObj[4].innerHTML; }
<td><a class="label label-success" href="javascript:void(0)" onclick="updatHost(this)" id="updateBtn">修改</a></td>
标签:this logs log var tab his success onclick children
原文地址:http://www.cnblogs.com/WJ--NET/p/6818067.html