This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript Problem with onchange event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript Problem with onchange event" Watch "Javascript Problem with onchange event" New topic
Author

Javascript Problem with onchange event

Chris Cornelius
Ranch Hand

Joined: Aug 02, 2005
Posts: 48
Hello,

I currently have a form that I use javascript to display/hide form elements:



I want to add to this form a script to disable everything but a few specified elements, including the function to still hide/display them with a
onchange on a set of radio buttons:



Here is the html code to call the hide/display the div:


At the moment, I cannot hide/display anything because it appears LoadIt() is disabling the onchange. Any ideas on how to enable hideAll()?

Thanks,

Chris Cornelius
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Make your function not disable the radio button?
Chris Cornelius
Ranch Hand

Joined: Aug 02, 2005
Posts: 48
Thanks Eric,

Yeah, I thought I had set the radio buttons to enabled through the name attribute. I went back and gave each one an individual id and enabled them
and that works.

Chris
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript Problem with onchange event