Sorry this is a bit of a repost because I wasn't quite accurate in my
original.
I have an hmtl page with a function to see if there are any input
type=text
boxes. If so, that means a user did not complete them (once entered,
my xsl stylesheet makes them text instead of text input boxes, so
there should be NO input text boxes when the user is clicking the
FINISH
button. I have the following which checks for just INPUT, but how to
specify type=text?
Thanks. Kathy
function CheckInput()
{
var cnAll = document.all;
for (var i=0;i<cnAll.len gth;i++)
{
if(cnAll(i).tag Name=='INPUT')
{
alert("You must first complete and SAVE all user inputs!");
return false; }
}
}
HTML snippet:
<form action="Hidden_ Birth2.aspx" method="post" onsubmit="retur n
CheckInput();">
<input type="Submit" name="finish" value="FINISH">
<b>Click the FINISH button when work instruction is complete.</b>
</form>
original.
I have an hmtl page with a function to see if there are any input
type=text
boxes. If so, that means a user did not complete them (once entered,
my xsl stylesheet makes them text instead of text input boxes, so
there should be NO input text boxes when the user is clicking the
FINISH
button. I have the following which checks for just INPUT, but how to
specify type=text?
Thanks. Kathy
function CheckInput()
{
var cnAll = document.all;
for (var i=0;i<cnAll.len gth;i++)
{
if(cnAll(i).tag Name=='INPUT')
{
alert("You must first complete and SAVE all user inputs!");
return false; }
}
}
HTML snippet:
<form action="Hidden_ Birth2.aspx" method="post" onsubmit="retur n
CheckInput();">
<input type="Submit" name="finish" value="FINISH">
<b>Click the FINISH button when work instruction is complete.</b>
</form>
Comment