V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
guotie
V2EX  ›  问与答

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

  •  
  •   guotie · Jun 7, 2012 · 4810 views
    This topic created in 5076 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   ·   2348 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 10:53 · PVG 18:53 · LAX 03:53 · JFK 06:53
    ♥ Do have faith in what you're doing.