jquery獲得table當前行中的所有內容

function getTd(obj){
    var td = $(obj).parents('tr').children('td');
    td.eq(0).find("select").val();
    td.eq(1).find("select").val();
    td.eq(2).find("select").val();
    //下拉列表使用
    td.eq(3).find("select").val()); 
    td.eq(0).attr("id");
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章