Skip to content
jquery district UI
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
jquery.district.js

README.md

jquery.district 地区选择

Example:

HTML snippet:

<div id="district">
  <select id="province"></select>
  <select id="city"></select>
  <select id="district"></select>
</div>

Usage:

jQuery.District("#district", {
  url: '/district/',
  onChange: function(data){
    console.log(this);  // `this` is changed element 
    console.log(data);  // `data` is a district code like '330000'
  }
})
Something went wrong with that request. Please try again.