/    Sign up×
Community /Pin to ProfileBookmark

Drop Down List – Selection Change

Here’s my inquiry: I have a drop down list which holds days of the week, Monday-Friday. When a visitor selects a day, I need to automatically populate four radio buttons, each of which has a different time avaiable.

Can this be done w/out a database? Could I load the first drop down list (days of the week) statically, assign the name of the drop down list to a variable and then if statements to populate different times based on the day selected? Or do I need a database for this? Seems like a lot for such a simplistic task.

Thanks for any suggestions/code ideas.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@MatMelJan 22.2007 — This is a javascript problem I suppose.

You will either have to change the Radio Button captions directly by javascript or automatically submit the drop down list by javascript so that php can change the radio button captions.

I dont see why you would need a db!
Copy linkTweet thisAlerts:
@ryanbutlerauthorJan 22.2007 — Hmmm...ok.
×

Success!

Help @ryanbutler spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...