Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript Problem with onchange event

 
Chris Cornelius
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make your function not disable the radio button?
 
Chris Cornelius
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic