jQuery - Click event on elements with in a table and getting element values

后端 未结 7 1202
说谎
说谎 2020-12-25 10:48

I have the following HTML in a JSP file:

7条回答
  •  旧时难觅i
    2020-12-25 11:38

    This work for me!

    $(document).ready(function() {
        $(document).on("click", "#tableId tbody tr", function() {
            //some think
        });
    });
    

提交回复
热议问题