jquery获取多个checkbox的值异步提交给php的方法

前端之家收集整理的这篇文章主要介绍了jquery获取多个checkbox的值异步提交给php的方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@H_502_0@本文实例讲述了jquery获取多个checkBox的值异步提交给PHP方法分享给大家供大家参考。具体实现方法如下:


@H_502_0@HTML代码


<div class="jb51code">
<pre class="brush:xhtml;">
<tr>
<td><input type="checkBox" name="uid" value="<?=$item['mtaccount_id']?>"></td>
<td><?=$item['mtaccount_id']?></td>
<td><?=$item['account_id']?></td>
<td><?=$item['account_name']?></td>
<td><?=$item['server']?></td>
<td><?=$item['platform']?></td>
</tr>

@H_502_0@我的是html里的数据是从数据库读出来的,在此可以理解为下面代码

@H_502_0@jquery代码

@H_502_0@PHP代码

1,'msg' => '操作成功' ); echo json_encode($data); return false; // $gid 可忽略
@H_502_0@希望本文所述对大家的PHP程序设计有所帮助。

猜你在找的PHP相关文章