|
|
|
Drunken Mastah
from OPPERKLASSESVIN!!! (Norway) on 2005-01-15 17:32 [#01460886]
Points: 35867 Status: Lurker | Show recordbag
|
|
function charsLeft() { var num = 10; var inputField = document.forms[0].elements[0]; if(inputField.value.length > num) { return window.alert('Too many characters!'); } }
function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) { field.value = field.value.substring(0, maxlimit); } else { countfield.value = maxlimit - field.value.length; } }
|
| Attached picture |
|
|
|
Messageboard index
|
|
|
|