Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide event not triggering on hide #376

Open
sanknm opened this issue Mar 16, 2018 · 0 comments
Open

hide event not triggering on hide #376

sanknm opened this issue Mar 16, 2018 · 0 comments

Comments

@sanknm
Copy link

sanknm commented Mar 16, 2018

$(".timepicker1").timepicker({
showInputs: false,
minuteStep:1
}).on('hide.timepicker', function(e) {
//console.log('The time is ' + e.time.value);
//alert('here1');
$('#appointment_end_time').val(e.time.value);
console.log(e.time.value);
$(".timepicker1").removeData("previousValue");
$('#addNewReservationForm').validate().element('.timepicker1');

                if($(".timepicker1").valid())
                {
                    $('.timepicker1').removeClass('invalid').addClass('success');
                }

            }

        

    });

Every time is changed and focus out then widge closes but validation does not get triggered.it triggred only after rechanging time input next time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant