Reputation: 1
I'm trying to setup Trent's datetimepicker and timepicker. I have jQuery Datepicker setup and working. I added everything the docs said to include but just can't get it to work. Here is a link to my test page where the datepicker is working but datetimepicker is not. http://testsite.shadownetwest.com/datepicker4/index2.html
Can anyone could tell me where I'm going wrong?
Upvotes: 0
Views: 633
Reputation: 34107
Hiya Working demo http://jsfiddle.net/HaxfY/1/show/ or http://jsfiddle.net/HaxfY/1/
you were missing these 2 src and If I may suggest mention type
of the input as well as end it using /
:)
Hope this helps: (please feel free to add your default function in jquery code)
Donot forget to accept the answer. :P
code
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script>
And
$(function(){
$(".datepicker").datepicker({
onSelect: function(){
if ($('input[name="endDate"]').val() == '') {
var edate = $('input[name="begDate"]').val();
$('input[name="endDate"]').val(edate);
}
}
});
$('#timepicker').timepicker({});
$("#datetimepicker").datetimepicker();
});
Upvotes: 1