Coder Social home page Coder Social logo

areaselector's Introduction

areaSelector

**城市三级联动选择器 jQuery版

版本 1.0.1

介绍

原js版为 area.js,作者不详!由于原版不满足需求,所以自己动手改了一下,并做了简单封装。

###引入

<script src="jquery.areaselector.js"></script>

###使用

根据需求填写级别,最多三级。初始化选中地址填写在 attr-value="",留空为默认 text 值。

<select id="province" name="province" attr-value="广东省"></select>
<select id="city" name="city" attr-value="广州市"></select>
<select id="county" name="county" attr-value="天河区"></select>
$(document).ready(function() {
	$('#area-selector').areaSelector({
		id: ['#province', '#city', '#county'],
		text: ['省份', '城市', '区县'],
		after: function(data){}
	});
});

areaselector's People

Contributors

phuaj avatar

Stargazers

 avatar

Watchers

 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.