• Resolved bertl111

    (@bertl111)


    Hello,

    I want to show in the datepicker field a default value (today). How can I achieve this? Would be great if you can help me.

    Thanks and best regards

    Ben

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

    (@fahadmahmood)

    Hi Ben,

    Please provide me the URL so i can check the requirements well.

    Thanks,
    Fahad

    Thread Starter bertl111

    (@bertl111)

    Hi and thanks for your help!

    The URL is https://123findu.com/ and by clicking on “Weitere Suchkriterien” the search fields incl. date field appear.

    There I want to insert in the left field “Datum von…” the actual date (today) and in the right field “…bis” todays date but one year in advance (So both fields always cover a date range of one year).

    Would be great if you can have a look.

    Thanks a lot

    Ben

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Dear Ben,

    This is how you can set your required date in somewhere your footer.php like this

    <script>

    jQuery(“#yourinput”).datepicker( “setDate” , “7/11/2011” );

    </script>

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    And it’s 2nd part of your question:

    How to set future date with next year, right?

    <script>

    jQuery(“#yourinput”).datepicker( “setDate” , new Date(2018,8,01) );

    </script>

    Thread Starter bertl111

    (@bertl111)

    Hi and thanks a lot for your answer.
    I’ll try it.

    Best regards

    Ben

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Default value’ is closed to new replies.