我遇到一些问题,使单选按钮无法点击。正如我所见,我们可以使用复选框,但甚至改变了
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">
<i class="fa fa-bar-chart-o"></i>
<?php echo _UPDATE_WORK_ORDER_LANG_; ?> :
<b><?php echo WO_CODE.$data['IdProject']; ?>
</h4>
</div>
<?php
if ($data['cus_failer_assign_form_name'] == "Customer_Failure_Symptoms_BCM") { ?>
<div class="form-group" id="show" style="padding: 10px;">
<h3>Fault Symptoms Report</h3>
<form role="form" method="post" action="">
<div class="box-footer">
<b>Customer Failure Symptoms Checklist: </b>
Brake Control Module (BCM);<br />
<span style="font-weight:normal!important;">
Please select each of the following failures based on the issues you are experiencing with your module:<br /><br />
</span>
<div class="form-group">
<input type="checkbox" name="rad_1" id="rad_1" value="1" <?php if ($rad_1_date['rad_1'] == "1") { ?> checked="checked" <?php } ?> />
<label>The ABS light is on</label>
</div>
答案 0 :(得分:0)
要使任何输入“无法点击”,只需添加“已禁用”属性:
<input type="radio" name="myradio" disabled/> This is a disabled input
要检查和禁用它:
<input type="radio" name="myradio" checked disabled/> This is a checked and disabled input