var apptHour = $('select[name="ctl00$m$g_29cbb5be_bcd6_4949_875d_8fad4732db9b$ctl00$ctl05$ctl09$ctl00$ctl00$ctl04$ctl00$ctl00$DateTimeField$DateTimeFieldDateHours"]');
var endHour = $('select[name="ctl00$m$g_29cbb5be_bcd6_4949_875d_8fad4732db9b$ctl00$ctl05$ctl11$ctl00$ctl00$ctl04$ctl00$ctl00$DateTimeField$DateTimeFieldDateHours"]');
apptHour.blur(function() {
endHour.val($(this).val());
});
This copies the hour (when I select the Appointment Date: Hour and the End: Hour will copy it) and of course there is minute too.
but I am afraid the long name will change over time.
In javascript i can use the
var apptHour = $("label:contains('Appointment Date Hours')").next().val();
var endHour = $("label:contains('End Hours')").next().val();
for conditional expression but it won't work if i tried to copy using jQuery.
Is there a way to do it?
Thanks