Dynamically Adding Options in <select>
Hi friends,
can u pls tell me how to Dynamically Add Options in the . I am using Netscape. I cud do it in IE, but not in Netscape.
bye,
Nise
Web Development
Hi friends,
can u pls tell me how to Dynamically Add Options in the . I am using Netscape. I cud do it in IE, but not in Netscape.
bye,
Nise
by prem130373
Hi,
You can do this by using VB Script. If you are getting the data from the database to get the data then this will get you the options in
--- Below code goes on the top of the page after connection is set to the database ----
<%
set ABC = server.CreateObject("ADODB.Recordset")
sqlstr = "Select ID, Name from TempMaster"
ABC.Open sqlstr,conn
%>
---- HTML Code for -------
Select One
<%
do until getproject.EOF
%>
"><%=ABC("Name")%>
<%
ABC.MoveNext
loop
ABC.Close
%>
I hope this will help.
by nise_k
Poster rated this answer.
by nise_k
This discussion is closed to new replies.
Sort by Trending