mercredi 6 juillet 2016

Zebra datepicker select event 3

Why my code doesnt work on the local? But working on jsfiddle.net. Where is my mistake please help me.

<!doctype html>
<html>
    <head>
        <title>Zebra_DatePicker examples</title>
        <link rel="stylesheet" href="http://dl.dropboxusercontent.com/u/14855/zebra/css/default.css" type="text/css">
        <script type="text/javascript" src="http://code.jquery.com/jquery-3.0.0.min.js"></script>
        <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/Zebra_datepicker/1.9.4/javascript/zebra_datepicker.js"></script>
    </head>
    <body>
        <input type="text" class="datepicker" id="date1" value="Select First Date"/>
        <input type="text" class="datepicker" id="date2" value="Select Last Date"/>
        <script>
            $(document).ready(function() {
            $(".datepicker").Zebra_DatePicker({ format: "d-m-y" }); 
         });
            $("#date1").Zebra_DatePicker({
              onSelect: function() {
                $(this).change();
                alert($(this).context.value);
              }
            });
        </script>
    </body>
</html>

Aucun commentaire:

Enregistrer un commentaire