guotie
V2EX  ›  问与答

html,两个select,一个select依赖另一个select的结果,如何做?

  •  
  •   guotie · Jun 7, 2012 · 4973 views
    This topic created in 5164 days ago, the information mentioned may be changed or developed.
    如题。

    html,两个select,一个select的options依赖另一个select的value,如何比较好?
    6 replies    1970-01-01 08:00:00 +08:00
    manhere
        1
    manhere  
       Jun 7, 2012
    典型的联动啊
    guotie
        2
    guotie  
    OP
       Jun 7, 2012
    有什么好的解决方案?
    keelii
        3
    keelii  
       Jun 7, 2012
    建立有联动关系的json,动态的话还要用ajax。根据选中项new出新option~
    SErHo
        4
    SErHo  
       Jun 7, 2012
    avichen
        5
    avichen  
       Jun 7, 2012
    onchange=“javescript方法”
    avichen
        6
    avichen  
       Jun 7, 2012
    onchange=“javascript方法”
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3648 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 00:42 · PVG 08:42 · LAX 17:42 · JFK 20:42
    ♥ Do have faith in what you're doing.