We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: could the message textbox regain the focus after the message is sent (in case the send btn is clicked)?
You could use something like the following:
let messageTextbox = jQuery('[name=message]') ... socket.emit('createMessage', DATA, function(err, server_msg) { // Ack. if (!err) { messageTextbox.val('') // Clear the message input text } messageTextbox.focus() }) ...
The text was updated successfully, but these errors were encountered:
@fenderOne thanks for your suggestion, I'll fix that when I have time 😉
Sorry, something went wrong.
No branches or pull requests
Improvement: could the message textbox regain the focus after the message is sent (in case the send btn is clicked)?
You could use something like the following:
The text was updated successfully, but these errors were encountered: