Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ALT Tags for Combo Boxes?

Status
Not open for further replies.

jontout

Technical User
Dec 29, 2006
95
GB
Hi.

I've developed an intranet at work & they've asked if I could add the equivalent of an ALT tag to one of the combo boxes, which are created via SQL.

Here's the code...

Code:
<tr valign="top"><td><font face="Verdana" size="2"><b>Business Unit:</b></font></td><td>
<SELECT NAME="BusUnit" SIZE="1">
<OPTION SELECTED>
<%
Dim SQLBusn
SQLBusn = "Select * from tblBusUnit"
dbConn.Execute(SQLBusn)

Set RS = dbConn.Execute(SQLBusn)
  Do While Not RS.EOF%> 
<OPTION><%=RS("UnitName")%></OPTION>
<%RS.movenext%>
<%loop%>
</SELECT>

So my colleagues would like some form of description displayed when the user selects items from this dropdown.

I'm using basic ASP (not .net) with bits of Javascript and VBSCript, so any ideas along those lines would be great.

Thanks in advance,

Jon

 
So selecting an option changes the appearance of the page?

That seems a lot like the dynamic listbox issue that comes out now and then... perhaps you could achieve your goal by modifying one of the dynamic listbox solutions from the FAQs for this forum:
FAQS:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top