rbenites / Group-Project-1

0 stars 0 forks source link

[Bug] [Chat app} text field where user enters their message does not clear out after sending their message #67

Closed rbenites closed 6 years ago

rbenites commented 6 years ago

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(""); }); });