pulmocare - listed all indian states in State filed and made it dropdown
Specific Folder FTP Upload / ftp-deploy (push) Successful in 36s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 36s
Details
This commit is contained in:
parent
c863844555
commit
c7bd550cb3
|
|
@ -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, '');
|
||||
|
|
|
|||
Loading…
Reference in New Issue