Hello so I'm making a chat app using long-polling, ajax etc.
What I wanted to do is when I clicked the "Send" button I wanted the value of the button to be changed to "Please wait.." and will be refreshed and go back to value "Send".
For now this is my code when the "Send" button is clicked:
$('#btnsend').val('Please wait..');
It does work but it won't get back to "Send" value. Any thoughts? Thanks!