我想在class=item_circle
中选择一个下拉选项并将其保存
MySQL的。有答案吗?我在MySQL中获得单个数据
数据库,但不是选定的数据库:
<table class="table table-bordered" id="crud_table">
<tr>
<th width="10%">CIRCLE</th>
<th width="10%">Item1</th>
<th width="10%">Item1</th>
<th width="10%">Item1</th>
<th width="10%">Item1</th>
<th width="2%"></th>
</tr>
<tr>
<td contenteditable="false" class="item_circle">Bus Stand</td>
<td contenteditable="true" name="amt" class="item_1"></td>
<td contenteditable="true" name="amt" class="item_2"></td>
<td contenteditable="true" name="amt" class="item_3"></td>
<td contenteditable="true" name="amt" class="item_4"></td>
<td></td>
</tr>
</table>
答案 0 :(得分:0)
我不知道这是不是你要求的(因为抱歉,但你的问题有点神秘),但你可以通过AJAX请求将你想要写入的数据发送到数据库中,或者,如您所说的下拉菜单,通过为每个下拉条目分配一个value-attribute,然后通过表单将其发送到后端脚本。