我有一个带有复选框的多个更新数组(php-mysql-jquery)的列表,文本输入新类别名称和类别,一切正常。
每个项目的类别都显示在<div>
id 等于复选框的范围内。如何获取更新(发布后on success: function
),只有<div>
id 等于单击的复选框加载更新的值?
<input text="nova categoria" value="cars" />
cars
只为检查的 ckecboxes发送值mysql 更新。
<td> checkbox checked id = 111 </ td>
<td> Porshe </ td>
<td> category id = 111 </ td>
<td><div id=111>here show "cars"</div></td>
<td> checkbox id = 555 </ td>
Jobs <td> </ td>
<td> category id = 555 </ td>
<div id=111>here not show</div>
<td> checkbox checked id = 777 </ td>
<td> Jaguar </ td>
<td> category id = 777 </ td>
<div id=111>here show "cars"</div>
<td> checkbox id = 888 </ td>
<td> Café </ td>
<td> category id = 888 </ td>
<div id=111>here not show</div>
<td> checkbox checked id = 222 </ td>
<td> Mustang </ td>
<td> category id = 222 </ td>
<div id=111>here show "cars"</div>
<td> checkbox checked id = 123 </ td>
<td> Ferrari </ td>
<td> category id = 123 </ td>
<div id=111>here show "cars"</div>
请任何帮助!谢谢!