Note that datepicker will add its own unique id that looks something like this id="dp124326451455"
for each input field that has datepicker attached to it. For this reason, your <input >
should not already have an id
(which I know you don't, you have a class
).
In addition to that strange looking id it adds to each field, it also adds a class called hasDatepicker
. But as Wbdvlpr said, it just appends it to any existing classes you may have. Mine for example has 2 classes myclass
and myclasssec
and looks like this in php
<input name="myinputfield" class="myclass myclasssec" type="text" />
so it gets turned to:
<input id="dp1243264511551" name="myinputfield" class="myclass myclasssec hasDatepicker" type="text">
Notice that the only 2 changes tht happened are the new id as I said (id="dp124326451455"
) and the new class that gets "appended" to the end of the other classes: class="myclass myclasssec hasDatepicker"
Hope it helps you. But if you need other help you probably need to post your source to make easy for us to help you better.