开发者

min and max jQuery character counter

There are many max cha开发者_JAVA百科racter counters in jQuery.

Has anyone found any useful min character counters?

I'm looking for something like what StackOverflow uses when creating a comment:

min and max jQuery character counter


This should work:

var min = 15;
$("#idOfTextbox").keydown(function() {
    if(this.value.length < min) {
        // Min notice
    } else {
        // Current count
    }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜