Код: Выделить всё
var selectedRows = document.getElementsByClassName('selected');
function inputChanged(event) {
console.log(table)
alert(selectedRows)
console.log(selectedRows)
event.target.parentElement.parentElement.className =
event.target.checked ? 'selected' : '';
}Код: Выделить всё
.table_container{
float:left;
width:25%;
}
.container::after{
content: "";
clear: both;
display: table;
}
table{
margin: 0 auto;
border-radius: 10px;
}
tr{
padding: 15px;
text-align: center;
}
td{
color: black;
text-align: center;
vertical-align: middle;
border: 1px double white;
height: 50px;
background-color: #e1edf9;
width:272px;
}
.sub_text{
font-size: 12px;
font-style: italic;
color: #0071ce;
font-weight: 100;
}
th{
background-color: #0071ce;
text-align: center;
padding: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
color: white;
font-weight: bold;
}
.header{
color: #0071ce;
font-weight: bold;
padding: 10px;
}Код: Выделить всё
Plan A
$33.90
$161.30
$53.30
$186.20
HSA match:up to $350
HSA match:up to $700
$3000
Plan B
$1386.20
HSA match:up to $1350
HSA match:up to $7010
$222
$55
$432
$300
Plan C
$33.90
$1161.30
$513.30
$286.20
HSA match:up to $1350
HSA match:up to $1700
$80
Compare
Подробнее здесь: https://stackoverflow.com/questions/672 ... es-in-html
Мобильная версия