I am trying to access the left .hourselect in the daterangepicker. But I cant get it working for some strange reason. Here is what the html looks like:
I am trying to access the .hourselect class from the .calendar.left div.
There is a calendar right which has the same elements inside of it and that is why I need to use the .calendar.left to get the .hourselect element I want.
Here is the code I have tried which doesnt work:
$(document).on('change', 'div.calendar.left > div.daterangepicker_input > div.calendar-time > div > select.hourselect', function() {
alert(this.value);
console.log(this);
});
Has anyone came across this issue or know a way to get around this issue? I don't want to edit the actual library so I was trying to catch the value so I can use javascript to do what I want.
Thanks for any help in advance :)