Can check max number.
Rewrite into jquery plugin, can check requered, max number.