title: TypeError: $.post(...).success is not a function
body: <p>Can someone help me with my code below.. In Firefox developer tool I am getting error message: :TypeError: $.post(...).success is not a function</p>
  
  <p>All variables are submitted from form page..</p>
  
  <p>Any advice and suggestions will be appreciated ...</p>
  
  <p>Thank you</p>
  
  <pre><code>$(document).ready(function(){
  
      $('#post-comment-btn').click(function(){
  
          var _comment = $('#comment-post-text').val();
          var _userId = $('#userId').val();
          var _userName = $('#userName').val();
  
          if(_comment.length &gt; 0 &amp;&amp; _userId != null) {
  
              $.post("ajax/comment_insert.php",
  
                  {
                      task : "comment_insert",
                      userId : _userId,
                      comment: _comment,
  
  
                  }
                  ).success(
                      function(data)
                  {
                      console.log("ResponseText:" + data);
                  }
  
                  );
  
  
              console.log(_comment + " Username: " + _userName + " User Id: " + _userId);
  
          } else {
  
              console.log("The text area is empty..");
  
          }
  
          $('#comment-post-text').val("");
  
  
      });
  
  });
  </code></pre>