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 Enable/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
Reply locked New topic

Enable/Disable a Button

Sam Saha
Ranch Hand

Joined: Jan 23, 2010
Posts: 104
I have one Textbox(postalCode), one drop down menu(respondingFireHall) and a Button(Find Rating Territory). When I remove the value from the textbox and then change the value of select Menu to default value (“Select one”) and hit enter the button should be disabled. When we put the value back to the text box and change the drop down to other value rather that default the button becomes Enable.

I have successfully done the part when we remove the value from the text box the and hit enter the button becomes Disable and if we put the value back to the textbox and hit enter the button becomes Enable.

But when I tried to add the drop down menu part the removeAttr() part is not working. I would appreciate if someone can help me.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
why do we keep on creating the same topic?

I agree. Here's the link:
subject: Enable/Disable a Button
It's not a secret anymore!