pulmocare - listed all indian states in State filed and made it dropdown
Specific Folder FTP Upload / ftp-deploy (push) Successful in 36s Details

This commit is contained in:
Farhan Pathan 2026-06-26 15:49:54 +05:30
parent c863844555
commit c7bd550cb3
1 changed files with 53 additions and 0 deletions

View File

@ -212,6 +212,59 @@
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$(document).ready(function () {
const states = [
"Andhra Pradesh",
"Arunachal Pradesh",
"Assam",
"Bihar",
"Chhattisgarh",
"Goa",
"Gujarat",
"Haryana",
"Himachal Pradesh",
"Jharkhand",
"Karnataka",
"Kerala",
"Madhya Pradesh",
"Maharashtra",
"Manipur",
"Meghalaya",
"Mizoram",
"Nagaland",
"Odisha",
"Punjab",
"Rajasthan",
"Sikkim",
"Tamil Nadu",
"Telangana",
"Tripura",
"Uttar Pradesh",
"Uttarakhand",
"West Bengal",
"Andaman and Nicobar Islands",
"Chandigarh",
"Dadra and Nagar Haveli and Daman and Diu",
"Delhi",
"Jammu and Kashmir",
"Ladakh",
"Lakshadweep",
"Puducherry"
];
let $stateDropdown = $("#field-state");
$.each(states, function (index, state) {
$stateDropdown.append(
$("<option>", {
value: state,
text: state
})
);
});
});
$('#field-employee_code, #field-emp_code_previous_employee, #field-l1_managers_emp_code, #field-l2_managers_emp_code').on('input', function () {
this.value = this.value.replace(/[^0-9]/g, '');