Blogger Information
Blog 2
fans 0
comment 0
visits 2014
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
下拉框选中
程的博客
Original
910 people have browsed it
<script type="text/javascript">
        function getQueryVariable(variable) {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i=0;i<vars.length;i++) {
                var pair = vars[i].split("=");
                if(pair[0] == variable){return pair[1];}
            }
            return(false);
        }

        var str1 = getQueryVariable("select1"); // 参数1
        var str2 = getQueryVariable("select2"); // 参数2

        $("#select1 option:eq("+str1+")"); // 将选中的人和日期选中
        $("#select2 option:eq("+str2+")");
    </script>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post