Skip to content

onChange event not firing #154

@raags

Description

@raags

I'm trying to add an event handler for the "change" event but its not firing when the time selection has changed. A trigger() causes the appropriate action to complete. I prepared a test, and I get the same results there :

 <!DOCTYPE html>
 <html lang="en">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

 <link type="text/css" rel="stylesheet" href="jquery.timepicker.css" media="all" />

 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
 <script type="text/javascript" src="jquery.timepicker.min.js"></script>

 <script type="text/javascript">
 $(document).ready(function(){

 $('#time').timepicker({
    'timeFormat': 'h:i A',
    'scrollDefaultTime': '10:00'
 });

 $('#time').on('change', function(){
       console.log("in change");
 });
 });
 </script>
 </head>
 <body>
 <input type="text" id="time" />
 </body>
 </html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions