用jQuery取得table中某一個tr的index值

咱們在table的row上定義事件,常常須要得到該行的行數。行數都從0開始計數。jquery   var myRows = $('.table_gray tbody tr').click( function() { index = $(this).index() ; //利用jquery提供的取序號的方法 index1 =
相關文章
相關標籤/搜索