gpt4 book ai didi

jquery - 显示已选中数据复选框的 Bootstrap 表

转载 作者:行者123 更新时间:2023-11-28 04:30:45 25 4
gpt4 key购买 nike

如何显示已选中 data-checkbox 的 Bootstrap 表?

<div class="fixed-table-body">
<div class="fixed-table-loading" style="top: 41px; display: none;">Chargement des données...</div>
<table id="GetSpiAttached"
data-toggle="table"
data-url=@Url.Action("GetUser","User")
data-side-pagination="server"
data-pagination-next-text="›"
data-pagination-pre-text="‹"
data-toolbar="#toolbar">
<thead>
<tr>
<th data-field="Id" data-sortable="true">Code Client</th>
<th data-field="Nom" data-sortable="true">Nom</th>
<th data-field="Prenom" data-sortable="true">Prénom</th>
<th data-field="TitreCivilite" data-sortable="true">Civilité</th>
<th data-checkbox="true"></th>
</tr>
</thead>
</table>
</div>

enter image description here

最佳答案

下面的示例显示了使用 checked

选中的复选框

<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
<h2>Form control: inline checkbox</h2>
<p>The form below contains three inline checkboxes:</p>
<form>
<label class="checkbox-inline">
<input type="checkbox" value="" checked>Option 1
</label>
<label class="checkbox-inline">
<input type="checkbox" value="" checked>Option 2
</label>
<label class="checkbox-inline">
<input type="checkbox" value="" checked>Option 3
</label>
</form>
</div>

</body>
</html>

关于jquery - 显示已选中数据复选框的 Bootstrap 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41740417/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com