Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • I think I got everything else but I am not sure how reference this. Can you provide an example? Commented Feb 27, 2013 at 2:15
  • Inside of the deletecmnt function, just use this and it should be the anchor. var object = $(this).parent().parent() for example Commented Feb 27, 2013 at 2:18
  • Can you please look at my code I added at the top because it is not firing now. Commented Feb 27, 2013 at 2:40
  • @ClaudeGrecea you need to get cmt_id and base_url from the anchor: var cmt_id = $(this).data('id'); var base_url = $(this).data('base-url') Commented Feb 27, 2013 at 2:47
  • Ok, I got it to sort of work but it won't delete in real time. I have to refresh the page. What do you think this is happening? Commented Feb 27, 2013 at 3:39