How to send the last word on submit?

Jerry's Avatar


06 Apr, 2011 02:19 PM

I use the submit button and if the last word I enter is not on the dropdown list and I just enter it and do not press , or tab just submit it doesn't get submitted. How can I use jquery so that on submit the last word entered would also be "validated" and added to the "cloud"?



  1. 1 Posted by jSuggest on 16 Apr, 2011 11:41 PM

    jSuggest's Avatar

    Hi Jerry,

    I made a custom jSuggest plug-in based on the drew's autoSuggest script.

    It implements a new option called newItem. By default it is false, but you can pass a custom function where you format the data the user wrote in the text input so you then it is added with that custom format.

    You can see a working demo here,

    The first object does not allow adding new items, but the second allows you to do so.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac