Simone
08/03/2023, 2:06 AMdocument.addEventListener('readystatechange', function(e) {
switch (e.target.readyState) {
case "complete":
$('.totalsTeal').trigger('input');
break;
}
});
$(document).on('input', '.totalsTeal', function() {
let self = $(this);
let day = self.attr('data-name');
console.log(self.val());
if (self.val() === "0.00") {
$('#w1_' + day).parent().find('label').css('display', 'none');
} else {
$('#w1_' + day).parent().find('label').css('display', 'block');
}
});
so everytime, the value entered in the input field will have the updated value in the input field having a class of .totalsTeal and it should fire, the class is common to 3 or 4 inputs and every input works like a rowMyka Forrest
08/03/2023, 2:35 AMMyka Forrest
08/03/2023, 2:36 AMSimone
08/03/2023, 2:42 AMMyka Forrest
08/03/2023, 2:43 AMMyka Forrest
08/03/2023, 2:43 AMSimone
08/03/2023, 2:43 AMSimone
08/03/2023, 2:44 AMMyka Forrest
08/03/2023, 2:46 AMMichael Schmidt
08/03/2023, 12:28 PM