151
rated 0 times
[
154]
[
3]
/ answers: 1 / hits: 42294
/ 12 Years ago, tue, may 15, 2012, 12:00:00
To have a working datepicker on a field, I have to put this script inside my element
$( function() {
$( #date_datepicker ).datepicker( { dateFormat: yy-mm-dd } );
});
Removing the $( function() {
makes the datepicker not work.
So does it mean that the $( function() {
is the same as $(document).ready
?
I'm trying to optimize my javascript codes so knowing this might help.
More From » jquery