Use $(selector).maxlength();
to enable maxlength.
Use threshold
option to show up when there are 20 chars or less
Use warningClass
option to change default badge color and limitReachedClass
option to change the badge after limit reached.
Use preText
option to prepend text, postText
option to postpend text and separator
option to add a seperator in between max and min length .
Use placement: top-left
to align badge at the top left corner.
Use placement: top
to align badge at the top.
Use placement: top-right
to align badge at the top right corner.
Use placement: left
to align badge at the left corner.
Use placement: right
to align badge at the right corner.
Use placement: bottom-left
to align badge at the bottom left corner.
Use placement: bottom-right
to align badge at the bottom right corner.
Use placement: bottom
to align badge at the bottom corner.