100
rated 0 times
[
102]
[
2]
/ answers: 1 / hits: 7980
/ 10 Years ago, tue, april 15, 2014, 12:00:00
this is my jquery code.#StartTime and #EndTime is input form tag.starttime and entime contain time values only,not date value.then how to compare this two time values in jquery.
example:starttimeval=8:00 AM endtimeval=9:00 PM (not date value inside the variable only time)
$(function() {
$('#StartTime').datetimepicker({
datepicker : false,
format : 'g:i A'
});
$('#EndTime').datetimepicker({
datepicker : false,
format : 'g:i A'
});
var starttime= $(#StartTime).val();
var endtime= $(#EndTime).val();
});
this is my form image.it's show time values.
More From » jquery