•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 403,212 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,752 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 514 | Replies: 1
![]() |
| |
•
•
Join Date: Mar 2007
Location: GA
Posts: 27
Reputation:
Rep Power: 2
Solved Threads: 1
I would use the disable property on a onclick event.
html Syntax (Toggle Plain Text)
<html> <head> <script type="text/javascript"> function disableOption() { document.getElementById("but").disabled=true; } </script> </head> <body> <form> <input id="but" type="button" onclick="disableOption()" value="Disable"> </form> </body> </html>
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- submit button code (Perl)
- how to set the multiple submit button in asp (ASP)
- submit button (JSP)
- VB6 submit button sends information to BBChat (Visual Basic 4 / 5 / 6)
- Submit Button Help (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: loading page objects
- Next Thread: if else statement using onclick


Hybrid Mode