Click here to Skip to main content
15,925,369 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: javascripts help Pin
Ryan Binns20-Jul-03 22:57
Ryan Binns20-Jul-03 22:57 
GeneralRe: javascripts help Pin
Anonymous20-Jul-03 23:05
Anonymous20-Jul-03 23:05 
GeneralRe: javascripts help Pin
Ryan Binns20-Jul-03 23:09
Ryan Binns20-Jul-03 23:09 
GeneralRe: javascripts help Pin
henli20-Jul-03 23:27
henli20-Jul-03 23:27 
GeneralRe: javascripts help Pin
-- NA --23-Jul-03 0:54
-- NA --23-Jul-03 0:54 
GeneralRe: javascripts help Pin
Bjoern Graf22-Jul-03 20:49
Bjoern Graf22-Jul-03 20:49 
GeneralRe: javascripts help Pin
Ryan Binns22-Jul-03 21:15
Ryan Binns22-Jul-03 21:15 
GeneralRe: javascripts help Pin
Rahul Walavalkar22-Jul-03 9:34
Rahul Walavalkar22-Jul-03 9:34 
Try this:

(Note: Change the 6 in the first "for loop" with your total number of textboxes.)

function fnCheck()
{
var strTextBoxName;
for(var i=1;i<6;i++)
{
strTextBoxName = "serial" + i;
for(var j=0;j<document.f1.elements.length;j++)
{
if(document.f1.elements[j].name==strTextBoxName)
{
if(document.f1.elements[j].value=="")
{
alert("in for : " + strTextBoxName);
//Fill in your error message here
}
}

}
}
}


Written on a gravestone:
Here lies a father of 29. He could have had more but he didn't have the time!
GeneralRe: javascripts help Pin
henli22-Jul-03 22:18
henli22-Jul-03 22:18 
GeneralHTTP Compression and ASP Pin
User 1278219-Jul-03 11:15
User 1278219-Jul-03 11:15 
Generalhtml calendar Pin
Massy Sumlin18-Jul-03 6:08
Massy Sumlin18-Jul-03 6:08 
GeneralRe: html calendar Pin
Nino_118-Jul-03 15:50
Nino_118-Jul-03 15:50 
GeneralRe: html calendar Pin
Jon Hulatt21-Jul-03 0:20
Jon Hulatt21-Jul-03 0:20 
GeneralRe: html calendar Pin
Nino_121-Jul-03 5:13
Nino_121-Jul-03 5:13 
GeneralHelp with some JavaScript Pin
Paul Ingles18-Jul-03 5:06
Paul Ingles18-Jul-03 5:06 
GeneralRe: Help with some JavaScript Pin
theJazzyBrain18-Jul-03 6:04
theJazzyBrain18-Jul-03 6:04 
GeneralRe: Help with some JavaScript Pin
Paul Ingles18-Jul-03 6:24
Paul Ingles18-Jul-03 6:24 
GeneralAh, a simple question.... Pin
Weiye Chen17-Jul-03 23:16
Weiye Chen17-Jul-03 23:16 
GeneralRe: Ah, a simple question.... Pin
Frank Olorin Rizzi18-Jul-03 1:53
Frank Olorin Rizzi18-Jul-03 1:53 
GeneralRe: Ah, a simple question.... Pin
Weiye Chen18-Jul-03 6:25
Weiye Chen18-Jul-03 6:25 
GeneralADSI w/C# Pin
Nino_117-Jul-03 17:51
Nino_117-Jul-03 17:51 
GeneralFound It!! Pin
Nino_117-Jul-03 18:38
Nino_117-Jul-03 18:38 
GeneralWeb Services with large response data sets... Pin
JasonSmith17-Jul-03 16:12
JasonSmith17-Jul-03 16:12 
GeneralIIS Mail server crash course Pin
eggie517-Jul-03 10:03
eggie517-Jul-03 10:03 
Generalabsolute page size using javascript Pin
Newborn Naughtysaint17-Jul-03 3:22
Newborn Naughtysaint17-Jul-03 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.