SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast alsaffar's Avatar
    Join Date
    Aug 2002
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SelectBox Content

    Hi guys,

    How can make my select boxe's content dynamicaly changed?

    If I have (lets say 2 select boxes), and thier values are taken from the DB by while loop. How can I get the second select box values that are related to the first select boxt by just selecting a value from the first select box.

    (i.e. the first select box have (Ferrari, Porsche, Jaguar) and the second select box is empty until I select a value from the first select box, (lets say I select Porsche) then the second select box automaticaly will have (911, 968, 959) values!!!

    How can I achieve that?
    HaVe a GooD DaY

    @li @l$@ff@R

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can do this a number of way's check out the url's below which have examples of the ways this can be done

    http://members.aol.com/grassblad/html/selCascade2.html

    http://www.ashleyit.com/rs/jsrs/select/php/select.php

    http://www.w3schools.com/xml/xml_http.asp


Bookmarks

Posting Permissions

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