我試圖讓指數不連續的點擊時超鏈接是我傳遞一些其他的數據也從該標籤獲得由行ID和表ID行索引
<a href="javascript:void(0);" onclick="EditDoctorRow(' + RowCountDoctorVisit + ');">
<i class="fa fa-edit"></i>
</a>
我試圖
$('table#DoctorVisit tr#' + RowCount).index()
$('table#DoctorVisit tr#' + RowCount).closest.index()
但是兩者都不起作用
添加完整的代碼 – Tushar
完整代碼意味着我是如何創建動態表和所有?我只是想使用行號獲取索引號 – Kirtesh
你想在哪裏獲得'索引'? – Tushar