Hi, can i ask some help,i have some problem,.. Is it possible to call a function using the jquery.ajax?

Example inside of this file "myPHPfunction.php"

Code:
    function deleteaccount(param1,param2){
         ..................
         some statment here....
   }
  

    function addingccount(param1,param2){
         ..................
         some statment here....
   }


  ect......

Now if i have a form to be submitted to the "myPHPfunction.php" via ajax
and i want to call the addingaccount function, how can i call that function name via ajax Is this possible?

this is the code but i am stuck here.

Code:
   var mydata = $('#myformIDX').serialize();
       $.ajax({
          type:'post',
          url: 'myPHPfunction.php',
         data: mydata
         success: function(dtx){
                 alert(dtx);
       }
   });

Please help me on this.

Thank you in advance.