About fancybox pop-up box data submission

now there is a requirement that a pop-up box pops up after clicking the button, and there is a text box in the pop-up box. Enter the data and submit it. I now use fancybox to make a pop-up box, but later there is a problem when submitting the data. After clicking the submit button, I found that the data could not be submitted. How to solve this problem?
$("- sharpphone_button") .click (function () {

    $.fancybox.open("<div><form id="fanbox_phone"><input type="text" id="phone_num"/><input type="submit" id="phone_num_submit"/></form></div>");
});
$("-sharpfanbox_phone").ajaxForm({
    url: "/users/update_phone",
    type: "POST",
    beforeSubmit: function (a, f, o) {
        console.log(123);
        f.find("input[type=submit]").prop("disabled", true).addClass("disabled");
    },
    success: ajaxCallBack
});

js"123" 
Mar.31,2021
Menu