Results 1 to 5 of 5
Related
-
using javascript to update checkbox values and write output to textarea dynamically Forum: Javascript Forum
Replies: 6 -
side menu item only shows when DB has item in field Forum: PHP Forum
Replies: 25 -
Drop Down menu "other" *ree text option Forum: HTML Forum
Replies: 3 -
Dynamically populate a text field after making dropdown menu selection Forum: Website Scripts Forum
Replies: 4 -
video option Forum: General Discussion
Replies: 0
-
09-25-2001, 08:51 AM #1
Dynamically Update Option Value Menu Item
Hi:
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.
Thanks,
Koch
-
09-25-2001, 02:02 PM #2
Hiya Koch.
Hmm. Thats a tricky one.
it would have to be JavaScript to do it live.
or you could use server-sdie script like php to chieve the effect, but that would only effect forms on the next page.
not sure if you could achieve this with JavaScript to be honest.
Which one r u after?If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
09-25-2001, 02:34 PM #3
Hi Dean:
Thanks for the help. I had thought about JavaScript as well but wasn't sure how to do it. Sounds like the only way would be to update the option value menu item on the form on the next page.
Thanks,
Koch
-
09-25-2001, 03:38 PM #4
Cool.
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 -
Code:<input type="text" name="badger">
If your code says
echo $badger
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 -
http://www.php.net
http://www.phpbuilder.com
http://www.zend.com
Good Luck.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
09-25-2001, 03:48 PM #5
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum