aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

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
author
Rancher

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

http://www.coderanch.com/t/479974/HTML-JavaScript/Enable-Disable-Button

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enable/Disable a Button