Skip to content Skip to sidebar Skip to footer

Javascript Calendar Deselecting Date When Date Is Selected Again Instead Of Reselecting It

I use a calendar from No Gray, found at http://www.nogray.com/calendar.php, and I have realised that the problems I have been having is due to when you click on the same date that

Solution 1:

This example might help, but the user won't be able to unselect a date unless they clear the input field.

<inputid="forced_click_select"type="text"><scriptsrc="PATH/TO/ng_all.js"type="text/javascript"></script><scriptsrc="PATH/TO/components/calendar.js"type="text/javascript"></script><scripttype="text/javascript">
ng.ready( function() {
    var fcs_cal = new ng.Calendar({
        input: 'forced_click_select',
        events: {
            onDateClick: function(dt){
                this.select_date(dt);
            }
        }
    })
});
</script>

http://www.nogray.com/example.php?ID=307

Post a Comment for "Javascript Calendar Deselecting Date When Date Is Selected Again Instead Of Reselecting It"