Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


Save Automatically?

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.


                <div class="wrap">
	<h1 class="pen-title">Chosen: Multiple Dropdown</h1>
	<p class="pen-description">A simple dropdown using <a href="">Chosen.js</a>. Find out more, by reading the Chosen <a href="">options API</a>.</p>

	<!-- Begin Multiple Dropdown -->
	<form class="form" id="foo_form">
		<label for="foo_select" class="screen-reader-text">Click to select an option</label>
		<select id="foo_select" class="dropdown" form="foo_form" multiple data-placeholder="Click to select an option...">
			<option value="null">First option</option>
			<option value="null">Second option</option>
			<option value="null">Third option</option>
			<option value="null">Fourth option</option>
			<option value="null">Fifth option</option>
	<!-- End Multiple Dropdown -->

</div><!-- .wrap -->


                .form {

	// Reset default Chosen.js styles
	.chosen-container {
		font-size: rem(16);

		// Remove borders and box-shadows
		.chosen-drop {
			border: none;
			border-radius: 0;
			box-shadow: none;

	// Reset active styles
	.chosen-container-active {

		// Remove borders and box-shadows
		&.chosen-with-drop .chosen-single,
		.chosen-choices {
			border: none;
			border-radius: 0;
			box-shadow: none;		

		.chosen-results {

			// Remove gradient and set the highlight color
			.highlighted {
				background: $color-blue;


 * Chosen: Multiple Dropdown
window.WDS_Chosen_Multiple_Dropdown = {};
( function( window, $, that ) {

	// Constructor.
	that.init = function() {

		if ( that.meetsRequirements ) {

	// Cache all the things.
	that.cache = function() {
		that.$c = {
			window: $(window),
			theDropdown: $( '.dropdown' ),

	// Combine all events.
	that.bindEvents = function() {
		that.$c.window.on( 'load', that.applyChosen );

	// Do we meet the requirements?
	that.meetsRequirements = function() {
		return that.$c.theDropdown.length;

	// Apply the Chosen.js library to a dropdown.
	that.applyChosen = function() {
			inherit_select_classes: true,
			width: '300px',

	// Engage!
	$( that.init );

})( window, jQuery, window.WDS_Chosen_Multiple_Dropdown );