Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    newbee needs some helps (Please)

    My JavaScript knowledge is pretty much non existent .. I can do a pop up window and that’s about it. I'm working on a client site however and they need some JavaScript including.

    Here is an example of what they want:

    http://insurance.essentialtravel.co.uk/

    The bit of the site I'm interested in is the Travel Insurance Quote form. What I need to be able to do is when an option is selected from select box the other form options change.. That probably doesn’t make much sense but if you check out the site it's pretty clear.

    Any help with be greatly appreciated.

  • #2
    New Coder
    Join Date
    Apr 2007
    Location
    Silicon Valley California
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You will need to attach an 'onchange' event listener to the select element. Then depending on the value of the select element show a particular form. That can be a complicated process and i recommend using a toolkit like YUI (you really only need the yahoo.js && dom-event.js files), but you might also want to read DOMScripting if you want to get a solid grasp of JavaScript.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •