Basically I got 2 calendar scripts from the same source. I saw a custom script before that merged these two but Everything I tried failed. Please help.
Here are the 2 scripts.
Script 1:

    flat: true,
    date: ['2008-07-28','2008-07-31'],
    current: '2008-07-31',
    calendars: 3,
    mode: 'range',
    starts: 1

Script 2:

    date: $('#inputDate').val(),
    current: $('#inputDate').val(),
    starts: 1,
    position: 'r',
    onBeforeShow: function(){
        $('#inputDate').DatePickerSetDate($('#inputDate').val(), true);
    onChange: function(formated, dates){
        if ($('#closeOnSelect input').attr('checked')) {

Please help, I have a deadline and my head is already hurting.

5 Years
Discussion Span
Last Post by rexmatthew

Please help, I have a deadline and my head is already hurting.

I just came back from my short trip and my eyes are hurting now because I don't see any PHP code in your code which I'm not sure why post this in the PHP section in the first place?

You are merging 2 datepickers?

I notice that you didn't have a .each() function in your jQuery.

You can used .each() function to solve the issue you are having:


In the future please double check where you post your code or noone will answer your thread.


I'm sorry.
I'll mark this solved since I found out what to do and what was missing.
Thanks though.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.