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
but not the caption change.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-->
Can anyone help?
Thanks!




Reply With Quote