Home » questions » Onchange command in Javascript?

Onchange command in Javascript?

2006-08-02 14:20:57, Category: Programming & Design
I have read some tutorials and looked at sample code, but I am still not sure how to use it. I am wanting to generate the contents of a drop down list based on the selection made in another. One box will has USA and Canada, the other should list either states or provinces accordingly. Can someone please help me with this? Thanks. *rolleyes* event... command whatever... I need help writing the code, or breaking it down. As I said the tutorials and samples aren't helping. I know what it does, and how it works.. I just need help making it work...

Answers

  1. GunitRules

    On 2006-08-03 01:35:54


    http://javascript.internet.com/generators/drop-down-menu.html Click on this link and then put in the info that you want in your box. It will automattically generate the code for you, and then you just need to copy and paste the code into your website! Also, lots of other useful scripts for free, if you need them. Hope this helps you.
  2. BobbyD

    On 2006-08-02 14:32:28


    OK...I've got nothing better to do for a while. Leave this question open for another 24 hours and I'll get you going.
  3. zoha -

    On 2006-08-02 23:14:09


    for instance.... this is the drop down code: