Only first datepicker is shown in bootstrap modal view

211 Views Asked by At

I have four datepicker inputs in my form which is in bootstrap modal view from unify template http://htmlstream.com/preview/unify-v1.7/shortcode_form_advanced.html

Only first input has datepicker and the rest is not working. The link to the site is here

http://www.ztraty.8u.cz/pridat-novy-nalez.php

2

There are 2 best solutions below

0
On

call the

$('.datepicker').datepicker();

after .modal

0
On

I have just gone through your custom.js, you are using id for calling datepicker as below.

$('#date').datepicker();

Use the class name instead to call all the datepickers.

$('.datepicker').datepicker();