div class=cpfwTable h2 class=gwc-con-t style=margin-top 40px;科研服务订购-circRNA体外制备h2 table width=100 style=margin-bottom 40px; cellspacing=0 cellpadding=0 border=0 class=noBorderTable border-1 t
To retrieve the selected checkbox value and the values of td and th elements, you can use JavaScript/jQuery. Here's an example:
// Get the selected checkbox value
var selectedCheckbox = [];
$(".ky-44:checked").each(function() {
selectedCheckbox.push($(this).parent().next().text());
});
// Get the values of td and th elements
var tableData = [];
$(".cpfwTable td, .cpfwTable th").each(function() {
tableData.push($(this).text());
});
console.log("Selected Checkbox: ", selectedCheckbox);
console.log("Table Data: ", tableData);
This code will print the selected checkbox values in the console as well as the values of all td and th elements in the table
原文地址: https://www.cveoy.top/t/topic/hRV3 著作权归作者所有。请勿转载和采集!