learn java
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 15383
Add the disabled attribute to the it just like you would for any other form element.

Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: disable a button