snippet library logo
in category
Javascript / Forms / Disable Form Button
Snippet details
ID: 84
Viewed: 1183
Added: 2002-02-15
Version:
View Demo

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
This shows how to disable an input button after it has been clicked once..
uncomment the submit line to get the form to submit!

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown

<!---Head--->
<script language="javascript"> 
function disableClick(the_form){ 
the_form.oneclick.disabled=true; 
//the_form.submit(); 

</script>

<!---Body--->


<form name="clickonce" method="post" action=""> 
<input type="button" name="oneclick" value="Submit" onclick="disableClick(this.form)">
 </form>




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.