bootstrap table 插件
<!DOCTYPE html>
<html>
<head>
<title>radio单选框的操作</title>
<meta charset="utf-8">
<link href="bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap-3.3.5-dist/css/bootstrap-table.css" rel="stylesheet">
<script src="jQuery/jquery-1.8.2.min.js"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap-table.js"></script>
</head>
<body>
<table id="dataTable" data-toggle="table"
data-click-to-select="true" data-select-item-name="radioName"
data-order="desc" data-url="data2.json"
data-page-size="5"
data-height="472"
data-pagination="true"
>
<thead>
<tr>
<th data-field="state" data-radio="true" data-formatter="radio_formatter"></th>
<th data-field="id" data-align="center">房间号</th>
<th data-field="name" data-align="center">电话</th>
<th data-field="price" data-align="center">创建时间</th>
<th data-align="center" data-formatter="formatterText" >操作</th>
</tr>
</thead>
</table>
</body>
<script>
function radio_formatter(value,row,index){
if(index === 2){
return {
disabled:true,
checked:true
};
}
return value;
}
</script>
</html>