Delete row table using jQuery

Suppose I have a table like this id name address action -------------------------------------- s1 n1 a1 delete s2 n2 a2 delete Delete is a link for example ``. In the real case I delete the student using ajax. In order to simplify the code, I just alert the link and omit the ajax script. I just wanna know How to delete row from the html document using jquery. $(document).ready(function() { $("a").click(function(event) { alert("As you can see, the link no longer took you to"); var href = $(this).attr('href'); alert(href); event.preventDefault(); }); ); I want, After I alert the link the selected row will be remove automatically. Is there any suggestion how to implement this one ?
Can you post the HTML markup?

以上就是Delete row table using jQuery的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

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

前端开发相关广告投放 更专业 更精准