Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10372

    Hello! I am using flashlight theme. Whenever I write on head the following code the Galleries stop working (i can see the datepicker on my form though)… so where is the conflict can anyone help?

    <link rel=”stylesheet” type=”text/css” media=”screen” href=”//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css”>

    <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js”></script>

    <script src=”//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js”></script>

    <script>

    //$.noConflict();

    jQuery(document).ready(function($){

    var pickerSetup = function(css, date) {

    var el = $(css);

    if ( el ) {

    el.datepicker({dateFormat:’dd/mm/yy’, firstDay:1, mandatory:true, minDate: 0, maxDate:’+2y’});

    el.datepicker(“setDate”, date);

    } else {

    window.console && console.error(“Could not find form element: ” + css);

    }

    };

    pickerSetup(“#checkin”, “+0″);

    $(“#checkout”) && pickerSetup(“#checkout”, “+1″);

    });

    </script>

    #67834

    hey! The script probably throws a javacript error due to a syntax error. If you post the url to your page with the code added we can check with the help of firebug if an error is thrown and in which line it is located

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘jQuery datepicker’ is closed to new replies.