Okay I see. And the field that accepts the text from this box and displays it on the page after submit will not accept a string longer than the visual size of the text box. I realize span's don't limit length, but the field that uses this data apparently does. If that makes any sense. Plus the information being entered is something we need to control the length of anyhow.
Here is the java I believe is controlling the text box...
<code>
function setAR(mynumb){
mynumb = mynumb - 1
if(document.all.teamcount.value == 1){
document.all.AR1.value = document.all.AR.value
if(document.all.AR.value == "R"){
y = (prompt("Please enter rejection reason.", "Type reason here"))
}else{
y = ""
}
document.all.ARreason.value = y
if(document.all.AR.value == "L"){
y = (prompt("Please enter alternate reason.", "Type reason here"))
}else{
y = ""
}
document.all.Altreason.value = y
if(document.all.AR.value != document.all.ARold.value){
document.all.markar.innerText = "*"
}else{
document.all.markar.innerText = ""
}
}else{
document.all.AR1[mynumb].value = document.all.AR[mynumb].value
if(document.all.AR[mynumb].value == "R"){
y = (prompt("Please enter rejection reason.", "Type reason here"))
}else{
y = ""
}
document.all.ARreason[mynumb].value = y
if(document.all.AR[mynumb].value == "L"){
y = (prompt("Please enter Alternate reason.", "Type reason here"))
}else{
y = ""
}
document.all.Altreason[mynumb].value = y
if(document.all.AR[mynumb].value != document.all.ARold[mynumb].value){
document.all.markar[mynumb].innerText = "*"
}else{
document.all.markar[mynumb].innerText = ""
}
}
}
</code>
This is the right function I went back and checked. This controls the pop up comment box that I'm trying to handle. So perhaps within this function I can control the length? The person who wrote the original page insists that I must keep the span tag as opposed to something else.
Again I apologize for being so green.
"I don't wanna learn what I'll need to forget!