zoukankan      html  css  js  c++  java
  • 省市区三级联动

    <tr>
    <th>地址<font color='red'>*</font>:</th>
    <td>
    <style type="text/css">
    body{ background:#ffffff;margin:0; padding:0; font-family:"微软雅黑", Arial,
    Helvetica, sans-serif; }
    a{ color:#006600; text-decoration:none;}
    a:hover{color:#990000;}
    .top{ margin:5px auto; color:#990000; text-align:center;}
    .info select{ border:1px #cccccc solid; background:#FFFFFF;}
    .info{ margin:5px;}
    .info #show{ color:#3399FF; }
    .bottom{ text-align:right; font-size:12px; color:#CCCCCC; 1000px;}
    </style>
    </head>
    <body>
    <div class="info">
    <div>
    <select id="s_province" name="s_province"></select>
    <select id="s_city" name="s_city" ></select>
    <select id="s_county" name="s_county"></select>
    <script class="resources library" src="http://sandbox.runjs.cn/uploads/rs/267/g3ugugjp/area.js" type="text/javascript"></script>
    <script type="text/javascript">_init_area();</script>
    </div>
    <div id="show"></div>
    </div>
    <script type="text/javascript">
    var Gid = document.getElementById ;
    var showArea = function(){
    Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" +
    Gid('s_city').value + " - 县/区" +
    Gid('s_county').value + "</h3>"
    }
    Gid('s_county').setAttribute('onchange','showArea()');
    </script>
    </body>
    </td>
    </tr>
  • 相关阅读:
    Quartus II -----破解
    博客诞生
    OpenMPI 学习笔记(一)并行计算机和分布式计算
    信息安全(1):安全策略
    认证
    SSL/TLS 和Https
    IPSec 网络协议安全
    C# 快速高效率复制对象另一种方式 表达式树
    C语言学习指针和数组2
    C语言学习二维数组
  • 原文地址:https://www.cnblogs.com/maxlg/p/9377850.html
Copyright © 2011-2022 走看看