|
-
Apr 2nd, 2001, 01:29 PM
#1
Thread Starter
New Member
I have a slect combo box that contains a list of fields. When you click on a field, the page reloads with a querystring variable that is equal to the value of the field in the select box. An sql statement then displays all the information for that particular field. My question is:
How do I keep the field that is selected as the text in the select box?
Any help?
-
Apr 2nd, 2001, 02:29 PM
#2
add selected to the option tag. use an if statement when writing the data to the box to see if it is equal to the querystr8ng and if it is add selected to the option..Should end up looking like this
<option selected>Hey</option>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|