Have a chat room, issue is, is that when you submit something, the message in the form box stays. What I want, is for when it is submitted using the button, the message one clears.
So, I added $(‘#mbody’).val(”); and added the id mbody to the form with the message in it. But for some reason, it clears the other form.
Have a chat room, issue is, is that when you submit something, the message
Share
You don’t need to change the non-existant value of the FORM (form inputs have values). You simply need to reset it.
Make sure each form has a unique id.