Wrong list. This is CSS only. So JS is off topic. 

Take a look at jquery datetime picker. That is what bootstrap is based on I 
believe. 

I would try the basic code first then add to for desired functionality. 

Best,
Karl

Sent from losPhone

> On Feb 6, 2016, at 10:04 PM, D Mark Weiss <dadwe...@mac.com> wrote:
> 
> Using this as a datetimepicker function with Bootstrap. 
> 
> When you click on the icon to present the calendar, it autonmatically inserts 
> the current date into the field. I would prefer to only insert a date when a 
> click occurs on the calender itself. 
> 
> I have read the documentation and can’t seem to figure out how to make that 
> happen. 
> 
> Thanks in advance for your help.
> 
> Mark
> 
> <html>
> <head>
> <script 
> src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";></script>
> <link rel="stylesheet" 
> href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";>
> <script 
> src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js";></script>
> 
> 
> </head>
> <body>
> 
>    <div class='input-group date' id='datetimepicker1'>
>        <input type='text' class="form-control" />
>        <span class="input-group-addon">
>            <span class="glyphicon glyphicon-calendar"></span>
>        </span>
>    </div>
>    <div class='input-group date' id='datetimepicker2'>
>        <input type='text' class="form-control" />
>        <span class="input-group-addon">
>            <span class="glyphicon glyphicon-calendar"></span>
>        </span>
>    </div>
> 
> </body>
> <script 
> src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.min.js";></script>
> <script 
> src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.14.30/js/bootstrap-datetimepicker.min.js";></script>
> <script type="text/javascript">
>    $(function () {
>        $('#datetimepicker1').datetimepicker({
>        format: 'MM/DD/YYYY', 
>      });
>    });
>     $(function () {
>        $('#datetimepicker2').datetimepicker({
>        format: 'MM/DD/YYYY', 
>      });
>    });
> 
> 
> 
> 
> </script>
> 
> </html>
> DO NOT SEND BRIAN BELLAND 
> ANY ATTACHMENTS!!!!!!
> 
> DO NOT SEND ATTACHMENTS 
> WITH STUDENT DATA!!!!!!!!! EVER!
> 
> D. Mark Weiss
> PhD Student
> Research Assistant - Dr. Brian Belland
> Instructional Technology and Learning Sciences
> Utah State University
> 
> 
> 
> 
> 
> ______________________________________________________________________
> css-discuss [css-d@lists.css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to