Hi everyone,
I have an ASP form with a drop down boxes and radio buttons. Our goal is to disable questions related to the given question when a specific answer is selected. This was not a problem until we wanted to have the values load as disabled when the user brought the page up to edit it. The values are passed from the database in order to populate the fields. Right now the Onload event will work for all drop down boxes or all radio buttons but because we need two different JavaScript funtions in order to have the disabling function work properly. I can not get multiple functions to work properly because I am using IF statements in order to load the questions as enabled or disabled. I am trying to make seperate functions within JavaScript that have the IF statements within. It will not allow me to pass ASP values into the function and I can't figure out another way to make this work properly... Any thoughts would be greatly appreciated... Thanks
I have an ASP form with a drop down boxes and radio buttons. Our goal is to disable questions related to the given question when a specific answer is selected. This was not a problem until we wanted to have the values load as disabled when the user brought the page up to edit it. The values are passed from the database in order to populate the fields. Right now the Onload event will work for all drop down boxes or all radio buttons but because we need two different JavaScript funtions in order to have the disabling function work properly. I can not get multiple functions to work properly because I am using IF statements in order to load the questions as enabled or disabled. I am trying to make seperate functions within JavaScript that have the IF statements within. It will not allow me to pass ASP values into the function and I can't figure out another way to make this work properly... Any thoughts would be greatly appreciated... Thanks