Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mostafazs/jquery.iran-cities
jQuery plugin for dynamically add iran cities to your web application. support English and Farsi(Iran) languages
https://github.com/mostafazs/jquery.iran-cities
Last synced: 7 days ago
JSON representation
jQuery plugin for dynamically add iran cities to your web application. support English and Farsi(Iran) languages
- Host: GitHub
- URL: https://github.com/mostafazs/jquery.iran-cities
- Owner: mostafazs
- License: mit
- Created: 2016-07-27T06:29:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-19T17:44:51.000Z (over 2 years ago)
- Last Synced: 2024-11-17T14:43:07.947Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery.iran-cities
jQuery plugin for adding iran cities dynamically to web page.support Farsi(Iran) and English languages.
## Installation
Use npm:
npm install jquery.iran-cities
## Usage
Make sure you have jquery on page. use example located on `example.html`.
### I wanna see it!
```js
Example
$("document").ready(function(){
$("ul#CT").cities();
$("select#CT").cities();
$("div#otherElement").cities();
$("datalist#my_datalist").cities();
$("table#my_table").cities();
});
```
## Examples:
$("ul").cities(); //Add cities as
$("select").cities(); //Add cities as to
## Example:(Use language)
$("document").ready(function(){
$("ul").cities();
});
</scipt>
## TODO
* add more parameters
* more tests
## Found a bug?
Open a [github issue](https://github.com/mostafazs/jquery.iran-cities/issues).
## License
MIT License ( [https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT) )