Click a link to delete targeted content using Ajax
I only see two things to "reduce", regarding the line amount.


The if statement in the success callback could be replaced by a ternary operator.
The last e.preventDefault() is redundant, you can squarely remove the whole else part.

$(document).ready(function () {
  $("body").on("click",".delCommentLink",function (e) {
    e.preventDefault();
    var comment_url = $(e.target).parent().attr("href");
    var $commentEle = $(e.target).closest(".comment");
    if (window.confirm("Delete this comment?")) {
      $.ajax({
        type: "get",
        url: comment_url,
        success: function (data) {
          var ret = JSON.parse(data);
          (ret['status'] == 1) ? $commentEle.hide() : alert(ret['msg']);
        },//success
      });//ajax  
    }
  });//click event
});



That is 6 lines less...