Change Submit Button's Caption- Javascript -[RESOLVED]
I'm looking for a way to change a submit button's caption as soon as it is clicked.
I want to disable it and make it say "Searching"
I can do the disable
Code:
<!-- Begin Disable submit button
function disableForm(theform)
{
if (document.all || document.getElementById)
{
for (i = 0; i < theform.length; i++)
{
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit")
{
tempobj.disabled = true;
}
}
return true;
}
}
// End Disable submit button-->
but not the caption change.
Can anyone help?
Thanks!