Giter Club home page Giter Club logo

jquery-chain-select's Introduction

jQuery 多级联动下拉框插件

使用示例

<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="jquery-chain-select.js"></script>
    
<span id="js-chain-demo1"></span>

<script>

    $(function () {
        $("#js-chain-demo1").chainSelect({

            //设置ajax获取下拉选项数据的url
            //接收pid参数,根据pid参数(父级id)返回json数据
            //服务端返回数据示例: [{"id":"12","name":"北京"},{"id":"13","name":"广东省"}]

            optionData: "jquery-chain-select.php", 
            items: [
                {name: 'province', selected: "13", prompt: '--选择省--'},
                {name: 'city', selected: "41", prompt: '--选择市--'},
                {name: 'county', selected: "52", prompt: '--选择区县--'},
            ]
        })
    });
</script>

jquery-chain-select's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.