0

テキストエリアにcharcountプラグインを使用しています

http://cssglobe.com/jquery-plugin-simplest-twitterlike-dynamic-character-count-for-textareas/

そしてjqueryフォームの検証

http://bassistance.de/jquery-plugins/jquery-plugin-validation/

すべてが正常に機能していますが、エラーmsg charcountの代わりに、明確になっていることを願っています。この問題について誰かが助けてくれますか。事前に感謝します。コード例 http://jsfiddle.net/rashvish18/gF7ua/1 //

これは私が使用しているコードです

$(document).ready(function(){    
$("#story").charCount({
        allowed: 250,        
        warning: 20,
        counterText: 'characters remaining: '    
    });
            //$("#storyform").preventDefault();

$("#storyform").validate({
rules: {

    place:"required",
            story: "required"

},
messages: {
    story: "Please write your story",
    place: "Please write your place"

},errorElement: "span",
    wrapper: "span" // a wrapper around the error message

});

});

ここに画像の説明を入力してください

ここに画像の説明を入力してください

4

1 に答える 1

0

このプラグインにはいくつかのバグがあると思います。最後に、smdiffプラグインを使用しています。これは正常に機能しています。

https://github.com/ndp/show_char_limit

于 2012-11-16T07:22:06.053 に答える