javascript Programming Glossary: intmax
What is the best way to emulate an HTML input “maxlength” attribute on an HTML textarea? http://stackoverflow.com/questions/451491/what-is-the-best-way-to-emulate-an-html-input-maxlength-attribute-on-an-html-t function setMaxLength textarea.checkMax .each function i intMax this .attr maxlength this .after div span id ' this.id Counter'.. maxlength this .after div span id ' this.id Counter' intMax span remaining div function checkMaxLength strID intCount #.. checkMaxLength strID intCount # strID .val .length intMax # strID .attr maxlength strID # strID Counter strID .text parseInt..
|