Pigeon Poop
03-19-2009, 10:38 PM
Java noob here,
Trying to figure out whats the best way to go about this.
In my form I want user to Rate on a scale of 1-6 the importance of 6 questions that they have just answered.
How can I Select 1 - 6 from a dropdown but have each selection be conditional...so the same number can't be selected twice.
Any suggestions would be very much appreciated?
Below is a code snippet...
<table width="800" border="0" cellpadding="0">
<tr>
<td align="center"><span class="body_text">Question #1</span></td>
<td align="center"><span class="body_text">Question #2</span></td>
<td align="center"><span class="body_text">Question #3</span></td>
<td align="center"><span class="body_text">Question #4</span></td>
<td align="center"><span class="body_text">Question #5</span></td>
<td align="center"><span class="body_text">Question #6</span></td>
</tr>
<tr>
<td align="center">
<select name="question_importance1">
<option value="-">Ranking</option>
<option value="1">1 </option>
<option value="2">2 </option>
<option value="3">3 </option>
<option value="4">4 </option>
<option value="5">5 </option>
<option value="6">6 </option>
</select>
</td>
<td align="center">
<select name="question_importance2">
<option value="-">Ranking</option>
<option value="1">1 </option>
<option value="2">2 </option>
<option value="3">3 </option>
<option value="4">4 </option>
<option value="5">5 </option>
<option value="6">6 </option>
</select>
</td>
<td align="center">
<select name="question_importance3">
<option value="-">Ranking</option>
<option value="1">1 </option>
<option value="2">2 </option>
<option value="3">3 </option>
<option value="4">4 </option>
<option value="5">5 </option>
<option value="6">6 </option>
</select>
</td>
Trying to figure out whats the best way to go about this.
In my form I want user to Rate on a scale of 1-6 the importance of 6 questions that they have just answered.
How can I Select 1 - 6 from a dropdown but have each selection be conditional...so the same number can't be selected twice.
Any suggestions would be very much appreciated?
Below is a code snippet...
<table width="800" border="0" cellpadding="0">
<tr>
<td align="center"><span class="body_text">Question #1</span></td>
<td align="center"><span class="body_text">Question #2</span></td>
<td align="center"><span class="body_text">Question #3</span></td>
<td align="center"><span class="body_text">Question #4</span></td>
<td align="center"><span class="body_text">Question #5</span></td>
<td align="center"><span class="body_text">Question #6</span></td>
</tr>
<tr>
<td align="center">
<select name="question_importance1">
<option value="-">Ranking</option>
<option value="1">1 </option>
<option value="2">2 </option>
<option value="3">3 </option>
<option value="4">4 </option>
<option value="5">5 </option>
<option value="6">6 </option>
</select>
</td>
<td align="center">
<select name="question_importance2">
<option value="-">Ranking</option>
<option value="1">1 </option>
<option value="2">2 </option>
<option value="3">3 </option>
<option value="4">4 </option>
<option value="5">5 </option>
<option value="6">6 </option>
</select>
</td>
<td align="center">
<select name="question_importance3">
<option value="-">Ranking</option>
<option value="1">1 </option>
<option value="2">2 </option>
<option value="3">3 </option>
<option value="4">4 </option>
<option value="5">5 </option>
<option value="6">6 </option>
</select>
</td>