How to get the value on change using timepicker in jquery?

Confluence User - 20 Oct, 2020

Hi,

Does anyone know how can we get the value on change using timepicker? It works on datepicker, but not timepicker. Here is my code:


$('input[name="startTime"]').on( 'change', function() {

    alert("Hi!");

});

But, no value is popup. I even try using .click(), live.('click') also doesnt work. Appreciate if you guys can help.

Thanks.

jquery;forms;custom;html

1


21 Oct, 2020
confluenceUser
confluenceUser

Maybe you could try:

<script>
$(document).ready(function() {
    $('.timeselector-value').click(function() {
        alert("Hi!");
    });
});
</script>
RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print