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

Prompting the user to make a selection in the Dropdownlist box


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





selection=" ">

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

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

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

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




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.