SCAYT allows the user to see and correct misspellings while typing. Misspelled words are underlined. User just needs to right-click a marked word and select a suggestion to replace the word with.
SpellCheckAsYouType (SCAYT) Text Box for editable controls
This is simple document with two editable controlsYou can use contenteditable div element, like this:
This is an exampl of a sentence with two mispelled words. Just type text with misspelling to see how it works.