Sharing technology, ideas, insights!
Call: +91 710 466 0336         Email: hello@sanisoft.com

Blog

jQuery auto-correct plugin

Please download latest version which works with jQuery-1.7.2 from plugin’s GitHub repository.

For times when a spell check is over kill! Many of us have over a period of time acquired some bad typing habits and we mis-spell some common word like typing ‘teh’ for ‘the’ and ‘taht’ instead of ‘that’. Going back and correcting every instance of this mistake can be very frustrating – so rather than change habit here is a jQuery plugin which will auto-correct such mistakes as you type

Take a look at the Demo

Works with jQuery-1.3.2 on all latest versions of major browsers like Firefox, Seamonkey, Chrome, IE, Safari, Opera etc.

Usage

Include plugin file in your page after the jQuery file

Configure your textboxes/textareas something like

As you see, first textbox has auto-correct attached with no options, second with ‘arent’ (which already exists in default options but you can over-write it) and ‘aboutit’ (this is new one which does not exist in default corrections) then third one is textarea

Download : here

About the Author

Amit Badkas is Zend certified PHP5 and Zend Framework engineer, and has been working in SANIsoft for past 10 years, his present designation is 'Technical Manager'

7 comments

  1. Pingback: santhoshtr's status on Tuesday, 30-Jun-09 03:53:31 UTC - Identi.ca

  2. Pingback: A bit of FOSS contribution at Tarique's Travails

  3. I’ve noticed a small bug with this extremely useful plug in. If you type the word ‘watch’ it will return a named function converted to a string!

    My fix is to add the following at line 143 in jquery.autocorrect-1.0.js:

    if((typeof stringToReplace) == ‘function’) { return; }

Leave a Reply