Javascript question

N

nadesico

I have a validation in my .asp page and wanted to alter it so the client
cannot place a space in the [ServiceFormat_OtherDesc] field, because now the
client cannot leave the field blank, but they can place a space in the field
and it will be accepted. Any help would be greatly appreciated. Thanks

function Validate(){
i=0
chosen = ""
for(i=0; i<document.Page3["ServiceFormat"].length; i++){
if(document.Page3["ServiceFormat"].selected){
chosen = chosen + document.Page3["ServiceFormat"].value
if(document.Page3["ServiceFormat"].value == "06" &&
document.Page3.ServiceFormat_OtherDesc.value == ""){
alert("Please Fill In Service Format Other Description");
document.Page3["ServiceFormat"].focus();
return false;}
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top