• Resolved MikeKJ

    (@mikekj)


    In the datepicker how can I make the Month drop down show full month name please as in January instead of Jan etc.

    Please may I revisit this google translate problem.

    If you go to https://ifctunstead.co.uk/application/ and select any other language (top right) and then click into a datefield the jQuery doens;t seem to get triggered, Switch back to English and it does trigger. Is this possibly a conflict issue? Is there a way it can be prevented if it is?

    This is an excerpt from my functions.php to do with the datepicker.

    function nor_footer_scripts(){
    ?>
    <style type=”text/css”>

    </style>
    <script type=”text/javascript” language=”javascript”>
    jQuery(document).ready(function($){
    $(‘#dob, input[name=”sincedate”‘).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, closeText: “”, currentText: “”, yearRange: “-90:+0″});
    $(‘#available_from, #available_to, input[name=”confirmstartdate”]’).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:”0″, maxDate:””, closeText: “”, currentText: “”});
    $(‘#available_from, #available_to, input[name=”confirmarrivaldate”]’).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:”0″, maxDate:””, closeText: “”, currentText: “”});
    $(“#dav2”).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:””, maxDate:””, closeText: “”, currentText: “”});
    $(“#fav2”).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:”0″, maxDate:””, closeText: “”, currentText: “”});
    $(“#dav”).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:””, maxDate:””, closeText: “”, currentText: “”});
    $(“#fav”).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:”0″, maxDate:””, closeText: “”, currentText: “”});
    $(“#jod”).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:”0″, maxDate:””, closeText: “”, currentText: “”});

    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘nor_footer_scripts’);

    Many thanks,

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Whatever you are doing, please try to do it without my plugin because, this way you will get confuse that why scripts are not working. Your scripts are perfect, but first deactivate the plugin and then try custom.

    On other hand, don’t use custom code and check the fully featured version of this plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Month dropdown and revisit language’ is closed to new replies.