J
Julia Briggs
Hello, I have these two scripts, where the first one is being canceled
out by the second, they work independently, but not together (they are
a auto-tab and form box character counter script) -- hopefully one can
see how they are conflicting and fix a solution so they can work and
mesh together. It seems the second script is canceling out the first
-- so I am not sure what the problem is. Thanks for anyone's help!
)
Sincerely,
%julia%
<script>
function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus()
}
</script>
<script type="text/javascript">
function showRemaining(formElement) {
var theForm = formElement.form;
var remainingDisplay = formElement.name + 'Remaining';
theForm.elements[remainingDisplay].value = formElement.maxLength -
formElement.value.length;
}
</script>
out by the second, they work independently, but not together (they are
a auto-tab and form box character counter script) -- hopefully one can
see how they are conflicting and fix a solution so they can work and
mesh together. It seems the second script is canceling out the first
-- so I am not sure what the problem is. Thanks for anyone's help!
)
Sincerely,
%julia%
<script>
function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus()
}
</script>
<script type="text/javascript">
function showRemaining(formElement) {
var theForm = formElement.form;
var remainingDisplay = formElement.name + 'Remaining';
theForm.elements[remainingDisplay].value = formElement.maxLength -
formElement.value.length;
}
</script>