Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
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] [/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 |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |