• Resolved CsoftAdmin

    (@csoftadmin)


    Hi,

    I want date picker at template for the user can pick any date he/she want.

    Is there any function available in wordpress? or I have to download specific plugin to use is at template page.

    Any help would be great.

    Cheers!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter CsoftAdmin

    (@csoftadmin)

    I try to add jquery datepicker at my page.php. But It cannot show me the date picker at all neither any error.

    Can anybody tell me how I configure this?

    Please I really need that one.

    Thread Starter CsoftAdmin

    (@csoftadmin)

    <?php
    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-ui-core');
    wp_enqueue_script('jquery-ui-datepicker',  FILE_URL . 'jquery.ui.datepicker.js', array('jquery','jquery-ui-core') );
    ?>
    <script>
    
    	jQuery(document).ready(function()
    
    	{
    
    		jQuery("#dp2").datepicker();
    
    	});
    
    </script>
    <div id="dp2"></div>

    in page.php… but no luck.

    Alwyn Botha

    (@123milliseconds)

    did you use detailed info at http://jqueryui.com/demos/datepicker/

    Thread Starter CsoftAdmin

    (@csoftadmin)

    I don’t get what you want me to do? Please specify if I made any mistake.

    Thanks 123milliseconds.

    Alwyn Botha

    (@123milliseconds)

    If you had Firefox Firebug you would be able to see if all required js got loaded

    <p>Date: <input id=”datepicker” type=”text”></p>

    need to be an input field; you have a div

    Thread Starter CsoftAdmin

    (@csoftadmin)

    Thanks a lot. I made the mistake. Now its working.

    Hurreeey

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Want date picker at template’ is closed to new replies.