File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes disable a button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disable a button" Watch "disable a button" New topic

disable a button

Dan Silva
Ranch Hand

Joined: Sep 05, 2007
Posts: 86
How do I disable a button? I'm looking to make it unclickable, not just not display it. THanks.
[ May 16, 2008: Message edited by: Bear Bibeault ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Add the disabled attribute to the it just like you would for any other form element.

I agree. Here's the link:
subject: disable a button
It's not a secret anymore!