テキストエリアに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
});
});