Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <form action="#send" method="post" class="custom-form">

	<select class="custom-select">
		<option value="">Choose country</option>
		<option disabled="disabled"></option>
		<option value="af">Afghanistan</option>
		<option value="al">Albania</option>
		<option value="dz">Algeria</option>
		<option value="as">American Samoa</option>
		<option value="ad">Andorra</option>
		<option value="ao">Angola</option>
		<option value="ai">Anguilla</option>
		<option value="ag">Antigua and Barbuda</option>
		<option value="ar">Argentina</option>
		<option value="am">Armenia</option>
		<option value="aw">Aruba</option>
		<option value="ac">Ascension Island</option>
		<option value="au">Australia</option>
		<option value="at">Austria</option>
		<option value="az">Azerbaijan</option>
		<option value="bs">Bahamas</option>
		<option value="bh">Bahrain</option>
		<option value="bd">Bangladesh</option>
		<option value="bb">Barbados</option>
		<option value="by">Belarus</option>
		<option value="be">Belgium</option>
		<option value="bz">Belize</option>
		<option value="bj">Benin</option>
		<option value="bm">Bermuda</option>
		<option value="bt">Bhutan</option>
		<option value="bo">Bolivia</option>
		<option value="bq">Bonaire, Sint Eustatius and Saba</option>
		<option value="ba">Bosnia and Herzegovina</option>
		<option value="bw">Botswana</option>
		<option value="br">Brazil</option>
		<option value="bn">Brunei</option>
		<option value="bg">Bulgaria</option>
		<option value="bf">Burkina Faso</option>
		<option value="bi">Burundi</option>
		<option value="kh">Cambodia</option>
		<option value="cm">Cameroon</option>
		<option value="ca">Canada</option>
		<option value="cv">Cape Verde</option>
		<option value="ky">Cayman Islands</option>
		<option value="cf">Central African Republic</option>
		<option value="td">Chad</option>
		<option value="cl">Chile</option>
		<option value="cn">China</option>
		<option value="co">Colombia</option>
		<option value="km">Comoros and Mayotte</option>
		<option value="cg">Congo</option>
		<option value="cd">Congo Dem Rep</option>
		<option value="ck">Cook Islands</option>
		<option value="cr">Costa Rica</option>
		<option value="ci">Cote d'Ivoire</option>
		<option value="hr">Croatia</option>
		<option value="cu">Cuba</option>
		<option value="cw">Curaçao</option>
		<option value="cy">Cyprus</option>
		<option value="cz">Czech Republic</option>
		<option value="dk">Denmark</option>
		<option value="io">Diego Garcia</option>
		<option value="dj">Djibouti</option>
		<option value="dm">Dominica</option>
		<option value="do">Dominican Republic</option>
		<option value="ec">Ecuador</option>
		<option value="eg">Egypt</option>
		<option value="sv">El Salvador</option>
		<option value="gq">Equatorial Guinea</option>
		<option value="er">Eritrea</option>
		<option value="ee">Estonia</option>
		<option value="et">Ethiopia</option>
		<option value="fk">Falkland Islands</option>
		<option value="fo">Faroe Islands</option>
		<option value="fj">Fiji</option>
		<option value="fi">Finland</option>
		<option value="fr">France</option>
		<option value="gf">French Guiana</option>
		<option value="pf">French Polynesia</option>
		<option value="ga">Gabon</option>
		<option value="gm">Gambia</option>
		<option value="ge">Georgia</option>
		<option value="de">Germany</option>
		<option value="gh">Ghana</option>
		<option value="gi">Gibraltar</option>
		<option value="gr">Greece</option>
		<option value="gl">Greenland</option>
		<option value="gd">Grenada</option>
		<option value="gp">Guadeloupe</option>
		<option value="gu">Guam</option>
		<option value="gt">Guatemala</option>
		<option value="gn">Guinea</option>
		<option value="gw">Guinea Bissau</option>
		<option value="gy">Guyana</option>
		<option value="ht">Haiti</option>
		<option value="hn">Honduras</option>
		<option value="hk">Hong Kong</option>
		<option value="hu">Hungary</option>
		<option value="is">Iceland</option>
		<option value="in">India</option>
		<option value="id">Indonesia</option>
		<option value="ir">Iran</option>
		<option value="iq">Iraq</option>
		<option value="ie">Ireland</option>
		<option value="il">Israel</option>
		<option value="it">Italy</option>
		<option value="jm">Jamaica</option>
		<option value="jp">Japan</option>
		<option value="jo">Jordan</option>
		<option value="kz">Kazakhstan</option>
		<option value="ke">Kenya</option>
		<option value="ki">Kiribati</option>
		<option value="kp">Korea, North</option>
		<option value="kr">Korea, South</option>
		<option value="kw">Kuwait</option>
		<option value="kg">Kyrgyzstan</option>
		<option value="la">Laos</option>
		<option value="lv">Latvia</option>
		<option value="lb">Lebanon</option>
		<option value="ls">Lesotho</option>
		<option value="lr">Liberia</option>
		<option value="ly">Libya</option>
		<option value="li">Liechtenstein</option>
		<option value="lt">Lithuania</option>
		<option value="lu">Luxembourg</option>
		<option value="mo">Macao</option>
		<option value="mk">Macedonia</option>
		<option value="mg">Madagascar</option>
		<option value="mw">Malawi</option>
		<option value="my">Malaysia</option>
		<option value="mv">Maldives</option>
		<option value="ml">Mali</option>
		<option value="mt">Malta</option>
		<option value="mh">Marshall Islands</option>
		<option value="mq">Martinique</option>
		<option value="mr">Mauritania</option>
		<option value="mu">Mauritius</option>
		<option value="mx">Mexico</option>
		<option value="fm">Micronesia</option>
		<option value="md">Moldova</option>
		<option value="mc">Monaco</option>
		<option value="mn">Mongolia</option>
		<option value="me">Montenegro</option>
		<option value="ms">Montserrat</option>
		<option value="ma">Morocco</option>
		<option value="mz">Mozambique</option>
		<option value="mm">Myanmar</option>
		<option value="na">Namibia</option>
		<option value="nr">Nauru</option>
		<option value="np">Nepal</option>
		<option value="nl">Netherlands</option>
		<option value="nc">New Caledonia</option>
		<option value="nz">New Zealand</option>
		<option value="ni">Nicaragua</option>
		<option value="ne">Niger</option>
		<option value="ng">Nigeria</option>
		<option value="nu">Niue</option>
		<option value="nf">Norfolk Island</option>
		<option value="mp">Northern Mariana Islands</option>
		<option value="no">Norway</option>
		<option value="om">Oman</option>
		<option value="pk">Pakistan</option>
		<option value="pw">Palau</option>
		<option value="ps">Palestine</option>
		<option value="pa">Panama</option>
		<option value="pg">Papua New Guinea</option>
		<option value="py">Paraguay</option>
		<option value="pe">Peru</option>
		<option value="ph">Philippines</option>
		<option value="pl">Poland</option>
		<option value="pt">Portugal</option>
		<option value="pr">Puerto Rico</option>
		<option value="qa">Qatar</option>
		<option value="re">Reunion</option>
		<option value="ro">Romania</option>
		<option value="ru">Russia</option>
		<option value="rw">Rwanda</option>
		<option value="bl">Saint Barthélemy</option>
		<option value="sh">Saint Helena</option>
		<option value="kn">Saint Kitts and Nevis</option>
		<option value="lc">Saint Lucia</option>
		<option value="mf">Saint Martin</option>
		<option value="pm">Saint Pierre and Miquelon</option>
		<option value="vc">Saint Vincent Grenadines</option>
		<option value="ws">Samoa</option>
		<option value="sm">San Marino</option>
		<option value="st">Sao Tome and Principe</option>
		<option value="sa">Saudi Arabia</option>
		<option value="sn">Senegal</option>
		<option value="rs">Serbia</option>
		<option value="sc">Seychelles</option>
		<option value="sl">Sierra Leone</option>
		<option value="sg">Singapore</option>
		<option value="sx">Sint Maarten</option>
		<option value="sk">Slovakia</option>
		<option value="si">Slovenia</option>
		<option value="sb">Solomon Islands</option>
		<option value="so">Somalia</option>
		<option value="za">South Africa</option>
		<option value="ss">South Sudan</option>
		<option value="es">Spain</option>
		<option value="lk">Sri Lanka</option>
		<option value="sd">Sudan</option>
		<option value="sr">Suriname</option>
		<option value="sz">Swaziland</option>
		<option value="se">Sweden</option>
		<option value="ch">Switzerland</option>
		<option value="sy">Syria</option>
		<option value="tw">Taiwan</option>
		<option value="tj">Tajikistan</option>
		<option value="tz">Tanzania</option>
		<option value="th">Thailand</option>
		<option value="tl">Timor-Leste</option>
		<option value="tg">Togo</option>
		<option value="tk">Tokelau</option>
		<option value="to">Tonga</option>
		<option value="tt">Trinidad and Tobago</option>
		<option value="tn">Tunisia</option>
		<option value="tr">Turkey</option>
		<option value="tm">Turkmenistan</option>
		<option value="tc">Turks and Caicos</option>
		<option value="tv">Tuvalu</option>
		<option value="ug">Uganda</option>
		<option value="ua">Ukraine</option>
		<option value="ae">United Arab Emirates</option>
		<option value="gb">United Kingdom</option>
		<option value="us">United States</option>
		<option value="uy">Uruguay</option>
		<option value="uz">Uzbekistan</option>
		<option value="vu">Vanuatu</option>
		<option value="va">Vatican City</option>
		<option value="ve">Venezuela</option>
		<option value="vn">Vietnam</option>
		<option value="vg">Virgin Islands, British</option>
		<option value="vi">Virgin Islands, US</option>
		<option value="wf">Wallis and Futuna</option>
		<option value="ye">Yemen</option>
		<option value="zm">Zambia</option>
		<option value="zw">Zimbabwe</option>
	</select>

	<hr>

	<select class="custom-select a" disabled="disabled">
		<option value="">Choose language</option>
		<option disabled="disabled"></option>
		<option value="id">Bahasa Indonesia</option>
		<option value="ms">Bahasa Melayu</option>
		<option value="ca">Català</option>
		<option value="cs">Čeština</option>
		<option value="cy">Cymraeg</option>
		<option value="da">Dansk</option>
		<option value="de">Deutsch</option>
		<option value="et">Eesti keel</option>
		<option value="en-GB">English (UK)</option>
		<option value="en">English (US)</option>
		<option value="es">Español</option>
		<option value="es-419">Español (Latinoamérica)</option>
		<option value="eu">Euskara</option>
		<option value="tl">Filipino</option>
		<option value="fr">Français</option>
		<option value="hr">Hrvatski</option>
		<option value="it">Italiano</option>
		<option value="is">Íslenska</option>
		<option value="sw">Kiswahili</option>
		<option value="lv">Latviešu</option>
		<option value="lt">Lietuvių</option>
		<option value="hu">Magyar</option>
		<option value="no">Norsk (Bokmål)</option>
		<option value="nl">Nederlands</option>
		<option value="pl">Polski</option>
		<option value="pt-BR">Português (Brasil)</option>
		<option value="pt-PT">Português (Portugal)</option>
		<option value="ro">Română</option>
		<option value="sk">Slovenčina</option>
		<option value="sl">Slovenščina</option>
		<option value="fi">Suomi</option>
		<option value="sv">Svenska</option>
		<option value="vi">Tiếng Việt</option>
		<option value="tr">Türkçe</option>
		<option value="el">Ελληνικά</option>
		<option value="bg">Български</option>
		<option value="ru">Русский</option>
		<option value="sr">Српски</option>
		<option value="uk">Українська</option>
		<option value="iw">‫עברית‬‎</option>
		<option value="ur">‫اردو‬‎</option>
		<option value="ar">‫العربية‬‎</option>
		<option value="fa">‫فارسی‬‎</option>
		<option value="mr">मराठी</option>
		<option value="hi">हिन्दी</option>
		<option value="bn">বাংলা</option>
		<option value="gu">ગુજરાતી</option>
		<option value="ta">தமிழ்</option>
		<option value="te">తెలుగు</option>
		<option value="kn">ಕನ್ನಡ</option>
		<option value="ml">മലയാളം</option>
		<option value="th">ภาษาไทย</option>
		<option value="am">አማርኛ (Amharic)</option>
		<option value="chr">ᏣᎳᎩ (Cherokee)</option>
		<option value="zh-TW">中文(繁體)</option>
		<option value="zh-CN">中文(简体)</option>
		<option value="ja">日本語</option>
		<option value="ko">한국어</option>
	</select>

	<hr>

	<select class="custom-select">
		<option value="">Choose timezone</option>
		<option disabled="disabled"></option>
		<option value="Pacific/Midway">(GMT-11:00) Midway Island, Samoa</option>
		<option value="America/Adak">(GMT-10:00) Hawaii-Aleutian</option>
		<option value="Etc/GMT+10">(GMT-10:00) Hawaii</option>
		<option value="Pacific/Marquesas">(GMT-09:30) Marquesas Islands</option>
		<option value="Pacific/Gambier">(GMT-09:00) Gambier Islands</option>
		<option value="America/Anchorage">(GMT-09:00) Alaska</option>
		<option value="America/Ensenada">(GMT-08:00) Tijuana, Baja California</option>
		<option value="Etc/GMT+8">(GMT-08:00) Pitcairn Islands</option>
		<option value="America/Los_Angeles">(GMT-08:00) Pacific Time (US & Canada)</option>
		<option value="America/Denver">(GMT-07:00) Mountain Time (US & Canada)</option>
		<option value="America/Chihuahua">(GMT-07:00) Chihuahua, La Paz, Mazatlan</option>
		<option value="America/Dawson_Creek">(GMT-07:00) Arizona</option>
		<option value="America/Belize">(GMT-06:00) Saskatchewan, Central America</option>
		<option value="America/Cancun">(GMT-06:00) Guadalajara, Mexico City, Monterrey</option>
		<option value="Chile/EasterIsland">(GMT-06:00) Easter Island</option>
		<option value="America/Chicago">(GMT-06:00) Central Time (US & Canada)</option>
		<option value="America/New_York">(GMT-05:00) Eastern Time (US & Canada)</option>
		<option value="America/Havana">(GMT-05:00) Cuba</option>
		<option value="America/Bogota">(GMT-05:00) Bogota, Lima, Quito, Rio Branco</option>
		<option value="America/Caracas">(GMT-04:30) Caracas</option>
		<option value="America/Santiago">(GMT-04:00) Santiago</option>
		<option value="America/La_Paz">(GMT-04:00) La Paz</option>
		<option value="Atlantic/Stanley">(GMT-04:00) Faukland Islands</option>
		<option value="America/Campo_Grande">(GMT-04:00) Brazil</option>
		<option value="America/Goose_Bay">(GMT-04:00) Atlantic Time (Goose Bay)</option>
		<option value="America/Glace_Bay">(GMT-04:00) Atlantic Time (Canada)</option>
		<option value="America/St_Johns">(GMT-03:30) Newfoundland</option>
		<option value="America/Araguaina">(GMT-03:00) UTC-3</option>
		<option value="America/Montevideo">(GMT-03:00) Montevideo</option>
		<option value="America/Miquelon">(GMT-03:00) Miquelon, St. Pierre</option>
		<option value="America/Godthab">(GMT-03:00) Greenland</option>
		<option value="America/Argentina/Buenos_Aires">(GMT-03:00) Buenos Aires</option>
		<option value="America/Sao_Paulo">(GMT-03:00) Brasilia</option>
		<option value="America/Noronha">(GMT-02:00) Mid-Atlantic</option>
		<option value="Atlantic/Cape_Verde">(GMT-01:00) Cape Verde Is.</option>
		<option value="Atlantic/Azores">(GMT-01:00) Azores</option>
		<option value="Europe/Belfast">(GMT) Greenwich Mean Time : Belfast</option>
		<option value="Europe/Dublin">(GMT) Greenwich Mean Time : Dublin</option>
		<option value="Europe/Lisbon">(GMT) Greenwich Mean Time : Lisbon</option>
		<option value="Europe/London">(GMT) Greenwich Mean Time : London</option>
		<option value="Africa/Abidjan">(GMT) Monrovia, Reykjavik</option>
		<option value="Europe/Amsterdam">(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>
		<option value="Europe/Belgrade">(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>
		<option value="Europe/Brussels">(GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>
		<option value="Africa/Algiers">(GMT+01:00) West Central Africa</option>
		<option value="Africa/Windhoek">(GMT+01:00) Windhoek</option>
		<option value="Asia/Beirut">(GMT+02:00) Beirut</option>
		<option value="Africa/Cairo">(GMT+02:00) Cairo</option>
		<option value="Asia/Gaza">(GMT+02:00) Gaza</option>
		<option value="Africa/Blantyre">(GMT+02:00) Harare, Pretoria</option>
		<option value="Asia/Jerusalem">(GMT+02:00) Jerusalem</option>
		<option value="Europe/Minsk">(GMT+02:00) Minsk</option>
		<option value="Asia/Damascus">(GMT+02:00) Syria</option>
		<option value="Europe/Moscow">(GMT+03:00) Moscow, St. Petersburg, Volgograd</option>
		<option value="Africa/Addis_Ababa">(GMT+03:00) Nairobi</option>
		<option value="Asia/Tehran">(GMT+03:30) Tehran</option>
		<option value="Asia/Dubai">(GMT+04:00) Abu Dhabi, Muscat</option>
		<option value="Asia/Yerevan">(GMT+04:00) Yerevan</option>
		<option value="Asia/Kabul">(GMT+04:30) Kabul</option>
		<option value="Asia/Yekaterinburg">(GMT+05:00) Ekaterinburg</option>
		<option value="Asia/Tashkent">(GMT+05:00) Tashkent</option>
		<option value="Asia/Kolkata">(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>
		<option value="Asia/Katmandu">(GMT+05:45) Kathmandu</option>
		<option value="Asia/Dhaka">(GMT+06:00) Astana, Dhaka</option>
		<option value="Asia/Novosibirsk">(GMT+06:00) Novosibirsk</option>
		<option value="Asia/Rangoon">(GMT+06:30) Yangon (Rangoon)</option>
		<option value="Asia/Bangkok">(GMT+07:00) Bangkok, Hanoi, Jakarta</option>
		<option value="Asia/Krasnoyarsk">(GMT+07:00) Krasnoyarsk</option>
		<option value="Asia/Hong_Kong">(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
		<option value="Asia/Irkutsk">(GMT+08:00) Irkutsk, Ulaan Bataar</option>
		<option value="Australia/Perth">(GMT+08:00) Perth</option>
		<option value="Australia/Eucla">(GMT+08:45) Eucla</option>
		<option value="Asia/Tokyo">(GMT+09:00) Osaka, Sapporo, Tokyo</option>
		<option value="Asia/Seoul">(GMT+09:00) Seoul</option>
		<option value="Asia/Yakutsk">(GMT+09:00) Yakutsk</option>
		<option value="Australia/Adelaide">(GMT+09:30) Adelaide</option>
		<option value="Australia/Darwin">(GMT+09:30) Darwin</option>
		<option value="Australia/Brisbane">(GMT+10:00) Brisbane</option>
		<option value="Australia/Hobart">(GMT+10:00) Hobart</option>
		<option value="Asia/Vladivostok">(GMT+10:00) Vladivostok</option>
		<option value="Australia/Lord_Howe">(GMT+10:30) Lord Howe Island</option>
		<option value="Etc/GMT-11">(GMT+11:00) Solomon Is., New Caledonia</option>
		<option value="Asia/Magadan">(GMT+11:00) Magadan</option>
		<option value="Pacific/Norfolk">(GMT+11:30) Norfolk Island</option>
		<option value="Asia/Anadyr">(GMT+12:00) Anadyr, Kamchatka</option>
		<option value="Pacific/Auckland">(GMT+12:00) Auckland, Wellington</option>
		<option value="Etc/GMT-12">(GMT+12:00) Fiji, Kamchatka, Marshall Is.</option>
		<option value="Pacific/Chatham">(GMT+12:45) Chatham Islands</option>
		<option value="Pacific/Tongatapu">(GMT+13:00) Nuku'alofa</option>
		<option value="Pacific/Kiritimati">(GMT+14:00) Kiritimati</option>
	</select>

	<hr>

	<select class="custom-select b">
		<option value="">Choose month</option>
		<option disabled="disabled"></option>
		<option value="january">January</option>
		<option value="february">February</option>
		<option value="march">March</option>
		<option value="april">April</option>
		<option value="may">May</option>
		<option value="june">June</option>
		<option value="july">July</option>
		<option value="august">August</option>
		<option value="september">September</option>
		<option value="october">October</option>
		<option value="november">November</option>
		<option value="december">December</option>
	</select>

</form>
              
            
!

CSS

              
                * {
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
}
 
.custom-select {
	width: 200px;
	height: 28px;
}
 
.a {
	width: 350px;
}
 
.b {
	width: 100px;
}
 
.c {
	width: 50px;
}
 
/* SELECT *********************************************************************/
.custom-select-wrap {
	position: relative;
	width: 200px;
	height: 26px;
	border: 1px solid #ddd;
	background: url(https://i.imgur.com/Rwz3VAm.png) no-repeat scroll right 0 #fff;
	line-height: 26px;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}
 
.custom-select-wrap:hover,
.custom-select-wrap:focus,
.custom-select-wrap.hover,
.custom-select-wrap.focus,
.custom-select-wrap.disabled,{
	background-color: #f1f1f1;
}
 
.custom-select-wrap .value,
.custom-select-wrap .original {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}
 
.custom-select-wrap .original {
	z-index: 2;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
}
 
.custom-select-wrap .value {
	z-index: 1;
	display: block;
	overflow: hidden;
	padding-left: 6px;
	max-width: 100%;
	white-space: nowrap;
	-ms-text-overflow: ellipsis;
	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;
}
              
            
!

JS

              
                /*!
 *
 * jQuery Custom Select v0.1.4
 *
 * Made by Magno Biét
 * Under MIT License
 *
 */

;(function($, window, document, undefined) {

	var pluginName = 'customSelect',
		defaults = {
			classWrap: 'custom-select-wrap',
			classFocus: 'focus',
			classValue: 'value',
			classDisabled: 'disabled',
			paddingRight: 30
		};

	function Plugin(element, options) {
		this.element = element;
		this.settings = $.extend({}, defaults, options);
		this._defaults = defaults;
		this._name = pluginName;
		this.init();
	}

	Plugin.prototype = {

		init: function() {

			this.selectReplace(this.element, this.settings);

		},

		selectReplace: function(element, settings) {

			var self = $(element),
				classFocus = settings.classFocus,
				initialValue = self.find('option:selected').text();

			self.addClass('original');
			self.wrap('<div class="' + settings.classWrap + '" style="width: ' + self.outerWidth() + 'px; height: ' + self.outerHeight() + 'px;" />');
			self.before('<span class="' + settings.classValue + '" style="padding-right: ' + settings.paddingRight + 'px;">' + initialValue + '</span>');

			if (self.is(':disabled')) {
				self.parent().addClass(settings.classDisabled);
			}

			self.on('change keypress keydown keyup update', function() {

				var _self = $(this),
					selected = _self.find('option:selected');

				_self.prev().html(selected.text());

				$(element).find('option').each(function() {
					$(this).attr('selected', false);
				});

				selected.attr('selected', true);

			});

			self.focus(function() {

				$(this).parent().addClass(classFocus);

			}).blur(function() {

				$(this).parent().removeClass(classFocus);

			});

		}

	};

	$.fn[pluginName] = function(options) {

		this.each(function() {

			if (!$.data(this, 'plugin_' + pluginName)) {

				$.data(this, 'plugin_' + pluginName, new Plugin(this, options));

			}

		});

		return this;

	};

}(jQuery, window, document));

/* INIT */
(function($) {

  $('.custom-select').customSelect();

}(jQuery));
              
            
!
999px

Console