How to check spelling of user typed text in a form textbox I built a form which have a text field for take input from user.

Now I want to implement a spell check module or something which can check spell when user type some word or sentence in the text field. I Googled a lot but didn't find any result for my search. Find spell checker for WYSIWYG editor but not for my search.

How can I implement spell checker for text field in a form.
You can use HTML spellcheck Attribute for the textfield. The spellcheck attribute is new in HTML5.


  The spellcheck attribute specifies whether the element is to have its spelling and grammar checked or not.


You can use this attribute in your textfield like follows. I've tested this and working fine.

  $form['check'] = array(
        '#type' =&gt; 'textfield',
        "#attributes" =&gt; array("spellcheck" =&gt; "true")
      );