(Msg. 1) Posted: Mon Jun 30, 2008 7:52 pm
Post subject: Javascript question Add to elertz Archived from groups: microsoft>public>frontpage>programming (more info?)
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"][i].selected){
chosen = chosen + document.Page3["ServiceFormat"][i].value
if(document.Page3["ServiceFormat"][i].value == "06" &&
document.Page3.ServiceFormat_OtherDesc.value == ""){
alert("Please Fill In Service Format Other Description");
document.Page3["ServiceFormat"].focus();
return false;}
}
}
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum