Hi, Experts,
I am new to javascript. Here is a piece of my html/javascript code:
My intention is that once a user clicks the link 'Next' once, he/she will see an unlickable string 'Please wait...'. I know my code not working - the string 'Next' certainly would not go away, though 'Please wait...' does show up.
Could someone show me the correct way to do it?
Many thanks!
I am new to javascript. Here is a piece of my html/javascript code:
Code:
<html>
<head>
<script language="JavaScript" type="text/javascript">
function pending() {
var buttonObj = document.getElementById('pending');
var messObj = document.getElementById('pending');
buttonObj.style.display = 'none';
messObj.style.display = 'inline';
}
</script>
</head>
<body>
<form method="post" action="..." name="aForm">
<!-- some form values here -->
<a href="" onclick="pending();document.aForm.submit();return false;">Next</a>
<span id="pending" style="display:none">Please wait...</span>
</form>
</body>
</html>
My intention is that once a user clicks the link 'Next' once, he/she will see an unlickable string 'Please wait...'. I know my code not working - the string 'Next' certainly would not go away, though 'Please wait...' does show up.
Could someone show me the correct way to do it?
Many thanks!