I will be fixing this by adding the following in the on click function
$("#chatMsg").val("");
this is how the cold will be after the fix:
$('body').on('click', '.emt_send ', function (e) { e.preventDefault(); $('.alert').addClass('d-none '); var chtMsg = $('#chatMsg').val().trim(); if (document.title === 'RezQr Dashboard') { fireRSet(chtMsg); } else { fireESet(chtMsg); } $("#chatMsg").val(""); }); });
I will be fixing this by adding the following in the on click function
$("#chatMsg").val("");
this is how the cold will be after the fix:
$('body').on('click', '.emt_send ', function (e) { e.preventDefault(); $('.alert').addClass('d-none '); var chtMsg = $('#chatMsg').val().trim(); if (document.title === 'RezQr Dashboard') { fireRSet(chtMsg); } else { fireESet(chtMsg); } $("#chatMsg").val(""); }); });