TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Javascript select statement help

Page: 1 Reply
Nov 8th 2005#171291 Report
Member since: Mar 24th 2001
Posts: 3734
I would like to change the default selection of the "Affiliation" drop-down to "No Preference". Problem is, that if I change the option "No Preference" to 'selected' then it throws off the results. I did not write the initial code, and somone has requested that I make the change.

The items that I believe are of importance, I have made red in the code section below. (Nevermind. The 'color' tags don't work within the 'html' tags.

Forgive me, as I know jack about javascript.

Thanks in advance for your help,
Matt

[CODE]

<%
Function fm_Option(byVal table, byVal Field)
Dim RsStates
Set RsStates=Server.CreateObject("ADODB.Recordset")
RsStates.Open "SELECT DISTINCT([" & Field & "]) FROM [" & table & "] ORDER BY [" & Field & "] ASC", fmconn, 2, 1

While NOT RsStates.EOF

Response.Write ""

RsStates.MoveNext()
Wend

'Kill
RsStates.Close
Set RsStates=Nothing
End Function
%>
[/CODE]
[HTML]




 






















Last Name:

City:



<%If 1=2 Then%>

<%End If%>

State:

Affiliation:















[/HTML]
Reply with Quote Reply
Nov 9th 2005#171308 Report
Member since: Mar 24th 2001
Posts: 3734
Nevermind, got it.
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum