Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8435783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:00:30+00:00 2026-06-10T07:00:30+00:00

I have a form wich dynamically creates a new row with a couple of

  • 0

I have a form wich dynamically creates a new row with a couple of form inputs. One of the inputs has a datepicker attached to it. I just managed with the help from here, to make this work. Except there is one problem left, as soon when i want to add options to the datepicker, it stops working…

Working fiddle: http://jsfiddle.net/HermesTrismegistus/Bt9eU/

And a not working fiddle: http://jsfiddle.net/HermesTrismegistus/TTNEP/

Its about this line:

$(".datepick").datepicker();

When i add the options to it.. It seems to stop functioning.

$(".datepick").datepicker("option", "dateFormat", "dd-mm-yy");

Does someone knows the solution to this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:00:32+00:00Added an answer on June 10, 2026 at 7:00 am

    Change both of your datepicker instances to:

    $(".datepick").datepicker({ dateFormat: "dd-mm-yy" });
    

    The code you were using works for changing options after you have instantiated a datepicker. The above code sets options when you instantiate it.

    jsFiddle example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty big form, wich has two possibilities. It is a form
I using Django and a generic view django.views.generic.create_update.create_object I have a model form wich
i have a privacy form, in wich i am selecting what application should be
I have an application wich open a modal form with the ShowDialog method. Once
On a form, I have two combobox wich have the same DataSource (their elements
I have this form, wich outputs some letters and a wordlength. But I've got
I have two forms. In a primary form I have a button wich calls
I have a checkout-button on my site wich dynamicly loads the form where the
I have an incoming soap message wich form is TStream (Delphi7), server that send
I have a button wich im dynamically adding to my page like this. if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.