///click the row to select or cancel the checkbox
///<param name="tableid">table id</param>
function setcheckbox_check (tableid) {
  var $tableid=tableid == ""?"#tb_list":"#" + tableid + "";
  //Cycle each tr line and add click event
  $($tableid) .find ("tr"). live ("click", function () {
    //The title line does nothing
    if (this.rowindex == 0) return;
    if ($(this) .find ("input"). attr ("checked") == "checked") {
      //deselect the selected rows
      $(this) .find ("input"). attr ("checked", false);
    } else {
      //unselected rows,Make a selection
      $(this) .find ("input"). attr ("checked", true);
  • Previous Java selenium tutorial selenium detailed introduction
  • Next jQuery simply implements the method of clicking the text box to copy the content to the clipboard