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.


<meta charset="utf-8">
<title>Bootstrap Dynamic DatePicker</title>
<link rel="stylesheet" href="" type="text/css">
<link rel="stylesheet" href="" type="text/css">
<link rel="stylesheet" href="" type="text/css">

<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>
<script src=""></script>
	margin: 10px 0 10px 0;	

<div class="panel panel-primary" style="width: 420px; margin: 0 auto;">
    <div class="panel-heading">
        <h3 class="panel-title">Bootstrap Dynamic DatePicker</h3>
    <div class="panel-body">
		<div class="col-md-8">
			<div class="form-group">
				<input type="text" class="form-control datepicker" placeholder="Pick the date">
		<div class="col-md-4">
			<button class="btn btn-primary add_field_button"><i class="fa fa-plus"></i> Add More</button>
		<div class="input_fields_wrap">
			<!-- Dynamic Fields go here -->





                //Dynamic Datepicker Fields
$('body').on('focus',".datepicker", function(){

$(document).ready(function() {
    var max_fields      = 10; //maximum input boxes allowed
    var wrapper         = $(".input_fields_wrap"); //Fields wrapper
    var add_button      = $(".add_field_button"); //Add button ID
    var x = 1; //initlal text box count
    $(add_button).click(function(e){ //on add input button click
        if(x < max_fields){ //max input box allowed
            x++; //text box increment
            $(wrapper).append('<div class="input-line-control removeMe"><div class="col-md-8"><div class="form-group"><input type="text" class="form-control datepicker" placeholder="Pick the date"></div></div><div class="col-md-4"><button class="btn btn-danger remove-date"><i class="fa fa-remove"></i>Remove</button></div></div>'); //add input box
    $(wrapper).on("click",".remove-date", function(e){ //user click on remove text
        e.preventDefault(); $(this).closest('div.removeMe').remove(); x--;