Results 1 to 5 of 5
side menu item only shows when DB has item in field Forum: PHP ForumReplies: 25
Drop Down menu "other" *ree text option Forum: HTML ForumReplies: 3
Dynamically populate a text field after making dropdown menu selection Forum: Website Scripts ForumReplies: 4
video option Forum: General DiscussionReplies: 0
09-25-2001, 08:51 AM #1
Dynamically Update Option Value Menu Item
Is there a way to dynamically update an option value menu item? For example,
<option value="action" > Add </option>
change the color of "Add" so it appears grayed out to the user if they select a particular checkbox.
09-25-2001, 02:02 PM #2
Hmm. Thats a tricky one.
or you could use server-sdie script like php to chieve the effect, but that would only effect forms on the next page.
Which one r u after?
09-25-2001, 02:34 PM #3
09-25-2001, 03:38 PM #4
Okay, this is the jist of it.
Using a server-side language (i am going to use PHP as an example, as I familiar with it) we could pick up which options the user had submitted on the last page.
With PHP, you give a variable a name -
<input type="text" name="badger">
If your code says
It will write whatever the user posted in the form to the page.
Obviously, it can get more powerful than that, using 'if' statements and stuff.
Do you have knowledge of any server-side scripts?
If not, I recommend php.
goos resources for php -
09-25-2001, 03:48 PM #5