//删除终端设备
$("img[id=remove]").bind("click",function(e)
{
var memberDeviceID = $(this).attr("value");
var datatemp = "memberDeviceID="+memberDeviceID;
$.ajax({
type: "post",
url: "delectDevice.action" ,
data: datatemp,
success: function(msg)
{
$("#errorCode").html("<font id='errorCodeid' color='red'>"+msg+"</font>");
$("#errorCodeid").fadeOut(5000);
// 怎么在成功后刷新页面
// $("#tableblack").
}
});
});
<table id="tableblack" width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_main2"> <s:if test="memberdevices!= null"> <s:iterator value="memberdevices" status="st"> <tr> <td width="25%" class="td_center"> <s:property value="deviceUUID" /> </td> <td width="25%" class="td_center"> <img src="images/icon_stop.gif" name="remove" value="<s:property value='memberDeviceID' />" id="remove" class="cur" /> </td> </tr> </s:iterator> </s:if> </table>