Good morning, this is my first question here in stackoverflow so have mercy ;)
I'm using the jQuery clockpicker plugin for some forms.
It seems, that the usage of the clockpicker is not clear for some of my users. They open the dialog, pick a hour and submit the form without picking a minute in the clockpicker! If they do so, the input for the time is empty (or is filled with the last used value). How can I get the selected hour from the clockpicker and put it into my input?
I found out, that there is an afterHourSelect()
so I think this is what I need. My question is really simple I guess.
$('#tTimeFrom".$x."').clockpicker({
autoclose: true,
afterHourSelect: function() {
$('#tTimeFrom".$x."').val( ??? );
}
});
What do I have to write instead of ???
to get the actual selected hour from the clockpicker?