Error for getting the output for ajax code

Hi, I’m unable to receive the output for the ajax code given below

Default Text

Submit

    function update_user(){
        user_number=document.getElementById("user_number").value;
        alert(user_number);

Hi @balajibhure2022 Can you please share the complete code , so we can point out the error.