对复选框html使用if-else条件
我对这件事也有同样的问题, 但是我的没有按钮。你知道我能做什么吗 这是我的代码:对复选框html使用if-else条件,html,laravel,Html,Laravel,我对这件事也有同样的问题, 但是我的没有按钮。你知道我能做什么吗 这是我的代码: <label for="exampleInputEmail1">Category*</label> <table> <tr> <td> <div class="form-check form-check-inline">
<label for="exampleInputEmail1">Category*</label>
<table>
<tr>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="meti_d" value="METI Member - Domestic"> METI Member - Domestic
</label>
</div>
</td>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="lec_d" value="Lecturer - Domestic"> Lecturer - Domestic
</label>
</div>
</td>
</tr>
<tr>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="meti_i" value="METI Member - International "> METI Member - International
</label>
</div>
</td>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="lec_i" value="Lecturer - International"> Lecturer - International
</label>
</div>
</td
</tr>
<tr>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="pro_d" value="Professional - Domestic"> Professional - Domestic
</label>
</div>
</td>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="stud_d" value="Student - Domestic"> Student - Domestic
</label>
</div>
</td>
</tr>
<tr>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="pro_i" value="Professional - International"> Professional - International
</label>
</div>
</td>
<td>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="stud_i" value="Student - International"> Student - International
</label>
</div>
</td>
</tr>
</table>
类别*
经济产业省成员-国内
讲师-国内
经济产业省成员-国际
讲师-国际
在输入标记中添加属性onchange=“category();”,如下所示
<input class="form-check-input" type="checkbox" id="meti_i" value="METI Member - International ">
您能告诉我们您尝试过什么,我们可以看看吗?您的代码目前是什么样子的?我已经编辑过了,谢谢提醒我
<div class="form-group">
<label for="exampleInputEmail1">Price</label>
<input type="text" class="form-control" id="price" aria-describedby="emailHelp" name="price">
</div>
<input class="form-check-input" type="checkbox" id="meti_i" value="METI Member - International ">