View Single Post
  #1 (permalink)  
Old 05-09-2006, 03:18 AM
johnwoof johnwoof is offline
Junior Member
 
Join Date: May 2006
Posts: 3
johnwoof is on a distinguished road
iTrader: (0)
Default script is working but giving error

These script is working as require but giving error object not found in line 5
(the first if statement)



function uploadfrm_onsubmit() {
intcount=0
while (intcount<=6)
{
if (document.getElementById("Name" + intcount).value!='') {
if (document.getElementById("Detail" + intcount).value=='')
{
alert("please Enter Description")
document.getElementById("Detail" + intcount).focus()
intcount = 6
return false
}
}
intcount=intcount+1
}
}


What is error in this js
Reply With Quote