text not displaying in input field with a javascript write to the field

I have a modal that opens on a verification of email button. I am looking to transfer the selected info to the main page then close the modal.

the modal works fine and get the data, but it does not populate the input fields. Here is the modal code:

       <form id="get_customer">
            <input type="hidden" name="customer_Name" value="John Doe" id="customerName">
            <input type="hidden" name="customer_Email" value="[email protected]" id="customerEmail">
            <div class="md-form mb-3"> <h4 class="modal-title text-start"><h3>Customer Details</h3></div>
            <div class="modal-body">
              <div class="md-form col-md-12">
                <table style="width:100%;">
                <table style="width:100%;">
                  <tr>
                    <td style="color:#000000;font-size:15px; font-weight:bold;">Peter McGrath</td>
                  </tr>
                  <tr>
                    <td style="color:#000000;font-size:10px;padding-top:2em;"><select name="customers_email_address"  style="width:100%;max-width:90%;" onchange="show_customer_selected()" id="customer_select" ><option value="12546">John Doe
    ([email protected])</option><option value="48421">John Doe
    ([email protected])</option><option value="49709">John Doe
    ([email protected])</option><option value="48064">John Doe
    ([email protected])</option></select></td>
                  </tr>
                  <tr>
                    <td style="color:#000000;font-size:15px; font-weight:bold;padding-top:2em;">Customer Details</td>
                  </tr>
                  <tr>
                    <td style="color:#000000;font-size:15px; font-weight:bold;padding-top:2em;"><span id="show_details"><br>John Doe<br>[email protected]<br>109 here st Drive<br>Auston, Texas<br>USA<br>555-555-55555</span></td>
                  </tr>
                </table>
              </div>
                <div class="text-start col-md-12" style="padding-top:3em;">
                  <button type="button" class="btn btn-warning" data-bs-dismiss="modal">Close</button>
                  <input type="submit" class="btn btn-success" id="use_customer" value="Use Customer" >
                </div>
            </div>
        </form>
    <script>
    function show_customer_selected(){
            var customerDropDown = document.getElementById("customer_select");
            var customers_id = customerDropDown.value;
            $.ajax({
                url: "ajax_customer_details.php",
                method: "post",
                data: {customers_id},
                dataType: "html",
                success: function (result) {
                $("#show_details").html(result);
            },
            error: function(xhr, status, error) {
          }
         });
        }
    $(function() {
        $("#get_customer").on('submit',function(e){
            e.preventDefault();
            var customers_name = document.getElementById("customerName").value;
            var customers_email = document.getElementById("customerEmail").value;
            document.getElementById('customerEmail').value = 'test';
            document.getElementById('customerName').value = customers_name;
     
alert(customers_email + customers_name);    

$("#popModal").modal("hide");
        })
    });
    </script>

Here is the main doc fields I am trying to populate:

<div class="col-sm-2 text-start"><input type="text" name="customer_name" value=""  id="customerName" ></div>

<div class="col-sm-8 text-start"><input type="text" name="customers_email_address" value=""  id="customerEmail" ></div>

I can get the data in the modal, but it is not populating the main doc fields so that they are visible. Wondering if I am missing something here?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật