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:
This should work:
var min = 15;
$("#idOfTextbox").keydown(function() {
if(this.value.length < min) {
// Min notice
} else {
// Current count
}
});
精彩评论