Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kvhrao

    (@kvhrao)

    Hello All

    The code to add Jquery DatePicker is as given below, which has to be added in the page within the php tag

    <?php
    wp_enqueue_script('jquery-ui-datepicker');
    wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
    ?>

    In the form

    <input type="text" id="MyDate" name="MyDate" value=""/>

    In the JavaScript section the code is as below

    jQuery(document).ready(function() {
        jQuery('#MyDate').datepicker({
            dateFormat : 'dd-mm-yy'
        });
    });

    It may not be the correct way, but it is working for me.

    I tried my level best to do it by myself for many days, since I was unable to do that I posted in the forum.

    Since David has replied, no one has viewed this and it was unresolved for me.

    Thanks
    Rao

    Hi WP_Dummy

    I am new to the wordpress.
    Can you please help me with the steps how to add autocomplete to the wordpress.
    I have created php page, database, when I upload to my hosting it is working fine, but I do not know how to add those in to the wordpress.

    Thanks & Regards
    Rao

    Thread Starter kvhrao

    (@kvhrao)

    Hi David Gwyer

    Thanks for your reply.
    I am trying to add it in the front end.
    As I said earlier I am new to the wordpress, can you please give me steps involved in doing this in detail please?

    Thanks & Regards
    Rao

Viewing 3 replies - 1 through 3 (of 3 total)