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="timetable-list">
    <div class="timetable__items" style="display: flex; align-items: flex-start;">
        <div style="display: block; margin-bottom: 10px;">
            <label for="personal__0" style="display: inline-block; width: 130px;">Ведущие:</label>
            <div class="select2-container select2-container-multi" id="s2id_personal__0" style="width: 343px;">
                <ul class="select2-choices">  
                    <li class="select2-search-choice">
                        <a href="#" class="select2-search-choice-close" tabindex="-1"></a>
                    <li class="select2-search-choice">    
                        <a href="#" class="select2-search-choice-close" tabindex="-1"></a>
                    <li class="select2-search-field">    
                        <label for="s2id_autogen4" class="select2-offscreen">Ведущие:</label>    
                        <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" id="s2id_autogen4" placeholder="" style="width: 20px;">  
                <div class="select2-drop select2-drop-multi select2-display-none">   
                    <ul class="select2-results">   
                        <li class="select2-no-results">No matches found</li>
            <select id="personal__0" multiple="" name="extra[timetable][personal][0][]" style="width: 343px;" tabindex="-1" class="select2-offscreen">
                <option value="-1">Выбрать</option>
				<option value="1094">Яна</option>
                <option value="1093" selected="selected">Анна</option>
                <option value="1092">Катя</option>
                <option value="1091" selected="selected">Оксана</option>
                <option value="1056">Маша</option>								
        <span class="dashicons dashicons-plus add-timetable-item" style="cursor: pointer;">Add</span>
        <span class="dashicons dashicons-trash delete-timetable-item" style="cursor: pointer;"></span>




                jQuery(document).ready(function() {
    var timetable = jQuery('.timetable-list');
    jQuery('.add-timetable-item', timetable).click(function() {
        timetableItem = timetable.children('.timetable__items').last();
        newItem = timetableItem.clone(true);
        newItem.find('select').each(function() {
            newInputId = jQuery(this).attr('id');
            newName = jQuery(this).attr('name');
                id: newInputId.replace(/\d+$/, m => +m + 1),
                name: newName.replace(/\d/, m => +m + 1)
            jQuery(this).find('option:selected').each(function() {
            jQuery(this).siblings('label').attr('for', newInputId.replace(/\d+$/, m => +m + 1));
        divID = newItem.find('div.select2-container.select2-container-multi').attr('id');
        newItem.find('div.select2-container.select2-container-multi').attr('id', divID.replace(/\d+$/, m => +m + 1));
        newItem.find('select.select2-offscreen').select('val', '');