Zenova ( Tracker Form) - Number issue fix
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m45s Details

This commit is contained in:
zeeshan 2026-10-07 11:34:53 +05:30
parent c513584c16
commit 75d30a6a84
1 changed files with 21 additions and 0 deletions

View File

@ -246,6 +246,27 @@
$('#field-total_rx_count').val(total)
})
const selector = '#field-sitazit_rx_count, #field-sitazit_dm_rx_count, #field-sitazit_d_rx_count, #field-sitazit_m_rx_count, #field-sitazit_trio_rx_count';
$(selector).on('input', function() {
let value = this.value.replace(/[^0-9]/g, '');
value = value.replace(/^0+/, '');
this.value = value;
});
$(selector).on('keypress', function(e) {
if (e.which < 48 || e.which > 57) {
e.preventDefault();
}
});
$('#field-file_upload').on('change', function () {
let file = this.files[0];