I have a remove link that will remove the current comment on my page. It uses ajax to change the database and upon success, I want to remove the div the comment resides in.
You'd be better off tackling this by setting an ID for the comment in your code.
For example:
Then using this ID with your AJAX request and response. A little more work, but it's more robust (IMO) 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Then using this ID with your AJAX request and response.
A little more work, but it's more robust (IMO)