Is something wrong in this Spell checking using jquery
<script type="text/javascript">
// check the spelling on a textarea
$("#check-textarea").click(function (e) {
e.preventDefault();
$(".loading").show();
$("#text-content")
.spellChecker({
lang: "en",
engine: "google",
suggestBoxPosition: "above"
})
.spellChecker('check', function (result) {
// spell checker has finished checking words
$(".loading").hide();
// if result is true then there are no badly spelt words
if (result) 开发者_运维技巧{
alert('There are no incorrectly spelt words.');
}
});
});
</script>
I am getting Error Message Object Does not support this property or method..
I used this link..
http://code.google.com/p/jquery-spellchecker/source/browse/#svn/trunk/css
Looks like you are using the incorrect source.
You should try ==> http://jquery-spellchecker.googlecode.com/svn/trunk/js/jquery.spellchecker.min.js
Not the CSS which you have listed ( http://code.google.com/p/jquery-spellchecker/source/browse/#svn/trunk/css )
Also, as Jakub pointed out it's a lower case c in spellchecker
Check out the example page.
精彩评论