jquery checkbox

//选中一行 checkbox选中

 $('#'+eloancn.table.tableId+' tbody').on("click", "tr", function () {

        $(this).toggleClass('selected');

 

        if($(this).hasClass("selected")){

            $(this).find("input").prop("checked",true);

        }else{

            $(this).find("input").prop("checked",false);

        }

    });

你可能感兴趣的:(jquery checkbox)