使用ajax到SQL Server的输入数据始终为false(失败)

Hello guys I'm trying to input data using ajax to sql server

This is the ajax script use to input data

<script type="text/javascript">
  jQuery(document).ready(function($) {
    $('#pengajuan').submit(function(){
      $.ajax({
      url: 'catcha.php',
      type: 'POST',
      data: $(this).serialize(),
      success: function(data){
        alert(data);
      // catch data
        $('[name=Seafarers]').val("");
        $('[name=date]').val("");
        $('.kontent').append('Success');
      }, 
      // jika gagal
      error: function() {
        alert("Failed");
      }
    });
    return false;
  });
});
</script>

Then I use display error.log(e); not displaying anything. Please help me

Here is the which is used to pass the from data with ajax to server

 $('#pengajuan').submit(function(){
        $.ajax({
            url: "catcha.php",
            type: 'POST',
            data: $('form#formId').serialize(),

        })
        .done(function(data){
            alert(data);
             $('.kontent').append('Success');
        })
        .fail(function(){
             alert("Failed");
        });
        return false;
    });