Changing the text of Submit button in ASP

cz007j

Freshman
Joined
Jul 28, 2004
Messages
26
Hi, I'm got a page that uses ASP. When I click on the submit form button, I would like the button to change it's text from "submit" to "Please Wait..."
for some odd reason, this doesn't work. Please help, thank you

here's what I have as JS code

<script language="javascript">
function changeButton()
{
theButton = document.frmInfoRequest.cmdSubmit
theButton.value = "Please Wait..."
}
</script>

This is the ASP code
<form id="frmInfoRequest" name="frmInfoRequest" onsubmit="return validatefrm(this)" action="prospective_students_newConn.asp" method="post">
...
...
<input onclick="changeButton();" class="button" id="cmdSubmit" type="submit" value="Submit Form" name="cmdSubmit">

</form>

for some reason, this doesn't work
 
Back
Top