table width=100 style=margin-bottom 40px; cellspacing=0 cellpadding=0 border=0 class=noBorderTable border-1 table-left thead tr th style=min-width 15px !important;input type=checkbo
To get the selected checkbox values in the table using jQuery, you can use the following code:
// Get all the selected checkboxes in the table
var selectedCheckboxes = $("table input[type='checkbox']:checked");
// Loop through each selected checkbox
selectedCheckboxes.each(function() {
// Get the corresponding table row
var row = $(this).closest('tr');
// Get the values of the columns in the row
var attribute1 = row.find('td:nth-child(2)').text();
var attribute2 = row.find('td:nth-child(3)').text();
var attribute3 = row.find('td:nth-child(4)').text();
// Do something with the values
console.log("Attribute 1: " + attribute1);
console.log("Attribute 2: " + attribute2);
console.log("Attribute 3: " + attribute3);
});
This code will get all the selected checkboxes in the table, and for each selected checkbox, it will find the corresponding table row and get the values of the columns in that row. You can then do whatever you want with those values
原文地址: https://www.cveoy.top/t/topic/hRWM 著作权归作者所有。请勿转载和采集!