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.length;i++)
{
if(cnAll(i).tagName=='INPUT')
{
alert("You must first complete and SAVE all user inputs!");
return false; }
}
}
HTML snippet:
<form action="Hidden_Birth2.aspx" method="post" onsubmit="return
CheckInput();">
<input type="Submit" name="finish" value="FINISH">
<b>Click the FINISH button when work instruction is complete.</b>
</form>