Skip to content

Instantly share code, notes, and snippets.

@MFry
Last active May 23, 2016 19:53
Show Gist options
  • Save MFry/2f4deab6d438f80ad258ad01b4aca8bf to your computer and use it in GitHub Desktop.
Save MFry/2f4deab6d438f80ad258ad01b4aca8bf to your computer and use it in GitHub Desktop.

Revisions

  1. MFry revised this gist May 23, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gettingStartedWithBootstrapDatepicker.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    //In HTML:
    //<input type="text" class="form-control">
    //<div id="sandbox-container"><input type="text" class="form-control"></div>

    //SCRIPT:
    $('#sandbox-container input').datepicker({
  2. MFry revised this gist May 23, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gettingStartedWithBootstrapDatepicker.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    <input type="text" class="form-control">
    //In HTML:
    //<input type="text" class="form-control">

    //SCRIPT:
    $('#sandbox-container input').datepicker({
    }).on('changeDate', function (event){
    var t = event['dates'];
  3. MFry revised this gist May 23, 2016. 2 changed files with 7 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Getting started with: Bootstrap Datepicker
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    Once you [create your custom boostrap datepicker](https://eternicode.github.io/bootstrap-datepicker/)
    7 changes: 7 additions & 0 deletions gettingStartedWithBootstrapDatepicker.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <input type="text" class="form-control">

    $('#sandbox-container input').datepicker({
    }).on('changeDate', function (event){
    var t = event['dates'];
    //t is a JavaScript Date Reference link: http://www.w3schools.com/jsref/jsref_obj_date.asp
    });
  4. MFry created this gist May 23, 2016.
    1 change: 1 addition & 0 deletions Getting started with: Bootstrap Datepicker
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Once you [create your custom boostrap datepicker](https://eternicode.github.io/bootstrap-datepicker/)