Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: Dynamic Dropdown Based on Date
09-02-2010, 05:29 PM #1
- Join Date
- Mar 2009
- Thanked 0 Times in 0 Posts
Dynamic Dropdown Based on Date
Here's what I need:
In September, the dropdown will display these prices
<option value="100">Product 1</option> <option value="150">Product 2</option> <option value="200">Product 3</option> In October, the dropdown will display these prices <option value="50">Product 1</option> <option value="100">Product 2</option> <option value="150">Product 3</option>
09-02-2010, 07:36 PM #2
Well, that's easy enough. But what happens in November? Do the prices become 0, 50, 100? I think I'll wait until November to buy. <grin/>
Seriously, tell us the *algorigthm* you are using to determine the prices.
By the by: In actuality, the dropdown will *NOT* "display these prices". The user can't see the prices as those <option>s are coded. So you *could* just usand then have your "backend" code (PHP? ASP? whatever) do the matchup of product id to cost.Code:<option value="1">Product 1</option> <option value="2">Product 2</option> <option value="3">Product 3</option>
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
09-02-2010, 07:43 PM #3
- Join Date
- Jun 2002
- London, England
- Thanked 2,542 Times in 2,520 Posts
Something like this:-
This free kick is going to be a left-footed or a right-footed strike. - Football commentator
Last edited by Philip M; 09-02-2010 at 09:10 PM.