Easy Timezone Picker with jQuery and Moment.js - Timezones

File Size: 84.3 KB
Views Total: 42983
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Easy Timezone Picker with jQuery and Moment.js - Timezones

Timezones is a jQuery & moment.js based plugin which allows you to quickly select a timezone from a regular select list.

How to use it:

1. Load the latest version of jQuery library and the jQuery timezones plugin (moment.js is integrated) at the bottom of your Html page.

<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="path/to/timezones.full.js"></script>

2. Create an empty select element for the timezone picker.

<select class="form-control"></select>

3. Call the timezones() function on the selection element and done.

$('select').timezones();

This awesome jQuery plugin is developed by firstandthird. For more Advanced Usages, please check the demo page or visit the official website.