I'm a newbie to the forum and a Javascript beginner, I'd appreciate some help with a drop down box issue. Is it possble to limit the options/attributes in a drop down box based on how the attribute was rated in a previous question.
Basically, if a customer gives a rating of 'Very Satisfied' or 'Somewhat Satisfied' (values 1 and 2, respectively) to an attribute, that attribute is removed from the list of options in a dropdown box that asks for the 'Area of greatest dissatisfaction'.
My example only gives three attiributes (variables) but the actual case will have 28 attributes. I apologize if the formatting looks messy, my current level of javascript programming is pretty low.
Thanks in advance for any help.
BB
I hope I post this correctly, here is what I currently have:
Expand|Select|Wrap|Line Numbers
- <HTML><HEAD>
- </HEAD>
- <font face="Verdana" size="1">
- </font>
- <font face="Verdana"><font size="1">
- </font>
- <div align="center">
- <table border="0" width="92%" cellspacing="1" cellpadding="0" height="20">
- <TR ALIGN=CENTER><TH width="859" height="50" valign="center" colspan="6">
- <p align="left" style="margin-top: 0; margin-bottom: 4px">
- Overall, <span style="font-weight: 400">
- <font face="Verdana">how satisfied are you with EACH of the following areas?</font><font size="2" face="Verdana"><i>)</i></font></span></TH>
- </TR>
- <TR ALIGN=CENTER><TH width="450" height="45" valign="bottom">
- <p align="left" style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- </TH>
- <TH bgcolor="#008000" height="45" width="104">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1" color="#F2F2F2">Very</font></p>
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1" color="#F2F2F2">Satisfied</font></p>
- </TH>
- <TH bgcolor="#008000" height="45" width="76">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1" color="#F2F2F2">Somewhat</font></p>
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1" color="#F2F2F2">Satisfied</font></p>
- </TH>
- <TH bgcolor="#008000" height="45" width="76">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1" color="#F2F2F2">Neither Satisfied Nor Dissatisfied</font></p>
- </TH>
- <TH bgcolor="#008000" height="45" width="76">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1" color="#F2F2F2">Somewhat Dissatisfied</font></p>
- </TH>
- <TH bgcolor="#008000" height="45" width="77">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1" color="#F2F2F2">Very Dissatisfied</FONT></font></p>
- </TH>
- </TR>
- <TR ALIGN=CENTER><TD ALIGN=LEFT width="450" bgcolor="#F2F2F2" height="39">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="2" color="#000000">1. Car performance</font></p>
- </TD><td width="104" bgcolor="#F2F2F2" height="39">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_1" value="1"></font></p>
- </td>
- <td width="76" bgcolor="#F2F2F2" height="39">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_1" value="2"></font></p>
- </td>
- <td width="76" bgcolor="#F2F2F2" height="39">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_1" value="3"></font></p>
- </td>
- <td width="76" bgcolor="#F2F2F2" height="39">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_1" value="4"></font></p>
- </td><td width="77" bgcolor="#F2F2F2" height="39">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_1" value="5"></font></p>
- </td></TR>
- <TR ALIGN=CENTER><TD ALIGN=LEFT width="450" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="2" color="#000000">2. Car reliability</font></p>
- </TD>
- <td width="104" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_2" value="1"></font></p>
- </td>
- <td width="76" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_2" value="2"></font></p>
- </td>
- <td width="76" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_2" value="3"></font></p>
- </td>
- <td width="76" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_2" value="4"></font></p>
- </td><td width="77" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_2" value="5"></font></p>
- </td></TR>
- <TR ALIGN=CENTER><TD ALIGN=LEFT width="450" bgcolor="#F2F2F2" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="2" color="#000000">3. Gas mileage</font></p>
- </TD>
- <td width="104" bgcolor="#F2F2F2" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_3" value="1"></font></p>
- </td>
- <td width="76" bgcolor="#F2F2F2" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_3" value="2"></font></p>
- </td>
- <td width="76" bgcolor="#F2F2F2" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_3" value="3"></font></p>
- </td>
- <td width="76" bgcolor="#F2F2F2" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_3" value="4"></font></p>
- </td><td width="77" bgcolor="#F2F2F2" height="34">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" size="1"><input type="radio" name="Q1_3" value="5"></font></p>
- </td></TR>
- <TR ALIGN=CENTER><TD ALIGN=LEFT width="859" height="50" colspan="6">
- <font face="Verdana">
- </TD>
- </TR>
- </TABLE>
- <font face="Verdana">
- </font>
- <table border="0" cellspacing="1" width="92%" cellpadding="0">
- <tr>
- <td width="726" height="26">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana" color="#008000" size="2">With which <b>ONE</b>, if any, of these areas are you
- <b>THE MOST dissatisfied</b>?</font></td>
- </tr>
- <tr>
- <td width="99%" bgcolor="#F2F2F2">
- <font face="Verdana">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0"><font size="1" face="Verdana">
- <SELECT NAME="Q2"; size="1">
- <OPTION selected value="">(Click here to choose)
- <OPTION value="1"> 1 Car performance
- <OPTION value="2"> 2 Car reliability
- <OPTION value="3"> 3 Gas mileage
- </SELECT>
- </font>
- </p>
- </td>
- </tr>
- <tr>
- <td width="99%" height="20">
- <p style="word-spacing: 0; line-height: 100%; text-indent: 0; margin: 0">
- <font face="Verdana">
- </td>
- <td>
- </td>
- </tr>
- </table>
- </BLOCKQUOTE>
- </FORM>
- </font>
- </BODY>
- </HTML>