Browse by Product
No matches to display.
<html>
<body>
<td>
this is a test
</td>
</body>
</html>
and that is how that goes.
but what about when we do this
<html>
<body>
<td>
this is a testttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
ttttttt
</td>
</body>
</html>
Yup, that works great...this is going to work out just fine....see some JavaScript here:
function updateCharCount(textboxId, characterCountId) {
maxCharacters = 115;
var textBox = document.getElementById(textboxId);
var tempCount = textBox.value.length;
if (count != tempCount) {
count = tempCount;
if (hadFocus == true) {
cursorPosition = getCursorPosition(textBox);
}
var questionText = textBox.value;
charactersLeft = document.getElementById(characterCountId);
charactersLeft.innerHTML = maxCharacters - count;
if (count >= maxCharacters) {
textBox.value = textBox.value.substring(0, maxCharacters - 1);
}
}
}