• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

请教jquery怎么删除当前列

php 搞代码 4年前 (2022-01-24) 23次浏览 已收录 0个评论

请问jquery如何删除当前列?

<script type="text/javascript"src="js/jquery.js"></script><br /><link href="css/tablecloth.css" rel="stylesheet" type="text/css" media="screen" /> <br /><script type="text/javascript" src="js/tablecloth.js"></script><br /><?php<br />require('inc/page.class.php');<br />require("inc/pdo.php");<br />$selectSpecialContent=$dbc->prepare("select *<i>*本5文来源gaodai$ma#com搞$$代**码)网@</i><img>搞代码gaodaima</img> from naszt");<br />$selectSpecialContent->execute();<br />?><br /><table align="center" cellspacing="0" cellpadding="0"><br /><tr><br /><th>专题名称</th><br /><th>专题类型</th><br /><th>发表时间</th><br /><th>发表ip</th><br /><th>操作</th><br /></tr><br /><?php while($row=$selectSpecialContent->fetch()){ ?><br /><tr>"><br /><td><?php echo $row['ztname']?></td><br /><td><?php echo $row['zttype']?></td><br /><td><?php echo $row['zttime']?></td><br /><td><?php echo $row['publiship']?></td><br /><td><button>">查看</button><button>">修改</button><button id="del">">删除</button></td><br /></tr><br /><?php }; ?><br /></table><br /><script><br />$(document).ready(function(){<br />$("#del").click(function(){<br />var q=$("tr").attr("id");<br />alert(q);<br />});<br />});<br /></script>

本来是想在tr 加个id 获取到这个id的值删除本行 但好像不行,请教高手

发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址