Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

  • to

      $("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) )