jquery function problem

Posted by user295189 on Stack Overflow See other posts from Stack Overflow or by user295189
Published on 2010-04-16T23:32:42Z Indexed on 2010/04/16 23:43 UTC
Read the original article Hit count: 456

I have this function

function onclickRowRecord(recordID) { 

     $.ajax({
   type: "POST",
   url: '/file/to/post.to.php' ,
   data: {recordID:recordID}, 
   success: function(data) {

    //how to post this to  function howToPost(recordID) the recordID  

   }
  });        
} 

function howToPost(recordID){
alert(recordID);
}

so how can I get the response from ajax success and post to the other function

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery