|
|
 |
Re: FN-FORUM: Javascript Challenge
date posted 8th December 2005 10:16
You need to do some work on the server side for that- you will know what
country you are in from the data posted back to the form so you can
preload the dropdowns with that information and with the right fields
selected.
-ben
D D Glendinning wrote:
>Morning All,
>
>A message was posted a while ago about a script that was needed to
>populate a second drop down box dependant on the option selected in
>the first.
>
>An excellent tutorial for this can be found here:
>
>http://www.plus2net.com/javascript_tutorial/dropdown-list.php
>
>The problem I am facing is that although this works fine, I am using
>it as part of a search box, which when submitted reloads the same page
>and displays the results below. For this reason, I would like the
>options that were selected in both drop downs to still be selected
>when the form is submitted.
>Because of how the code isdone, (and my serious lack of javascript
>knowledge!) I just can't see how this can be done.
>
>For those experienced javascripters out there, if you could have a
>look at the code, and give me some idea, I would really apprciate it!
>
>D
>
>
>
|
 |
|