0

I have the following code to render a calendar with bootstrap.

However when I select a date, I cant get the value, not with .val() not with .text()

btw its a sharepoint page.

<h3>Fecha de cumpleaños</h3>
<div>
   <div>
       <div class="form-group">
           <div class='input-group date' id='dtFechaCumpleanios'>
               <input type='text' class="form-control" />
               <span class="input-group-addon">
                   <span class="glyphicon glyphicon-calendar">
                   </span>
               </span>
           </div>
       </div>
   </div>
   <script type="text/javascript">
       jQuery(function () {
           jQuery('#dtFechaCumpleanios').datetimepicker({
               format: 'DD/MM'
           });
       });
   </script>

enter image description here

Luis Valencia
  • 32,619
  • 93
  • 286
  • 506

1 Answers1

1

Check this Link Good Explanation of to get date value from bootstrap date picker

Community
  • 1
  • 1
Muhammad Asad
  • 1,772
  • 16
  • 23
  • 1
    Welcome to SO Hafix, link only answers are not future-proof. Try to extract the relevant info please :) – A1rPun Jan 14 '16 at 13:07