Skip to Content
0
Former Member
May 31, 2005 at 09:07 PM

Prompting the user to make a selection in the Dropdownlist box

19 Views

Hi, I have created a DropdownList box using the following code:

<tr>

<td>

<hbj:dropdownListBox

id="ORGANIZATION"

selection=" ">

<hbj:listBoxItem key=" " value=" " />

<hbj:listBoxItem key="Marketing" value="Marketing" />

<hbj:listBoxItem key="Finance" value="Finance" />

<hbj:listBoxItem key="IT" value="IT" />

</hbj:dropdownListBox>

</td>

</tr>

By default, the selection in the Dropdownlist box is blank. The user will select one of the 3 departments mentioned above. However, if the user does not select any of the 3 departments, he should be prompted to do so. This should happen before the user clicks on the "Send" button which emails the form. Can anyone please help me? Thanks.