Giúp tạo nhanh components chọn Thành phố, Quận, Phường Demo https://form.boonygroup.com/app/form?id=6
Chèn file thư viện vào
<script src="/assets/js/jquery-3.6.0.min.js"></script>
<script src="/assets/js/location-loader.js"></script>
Đặt css tương cho các select
Select Thành phố : select-city
Select Quận : select-district
Select Phường: select-ward
File script mặc định sử dụng tên cụ thể để POST lên form, nếu bạn cần lưu dưới dạng ID, nhớ chỉnh lại giá trị value. Trong trường hợp bạn không tìm thấy cơ quan hành chính, vui lòng liên hệ mình qua email [email protected] để cập nhật lại data json.