now it says if u wanna get months short it should be
$( “.selector” ).datepicker({ dayNamesShort: [‘Dim’, ‘Lun’, ‘Mar’, ‘Mer’, ‘Jeu’, ‘Ven’, ’
how do i append to my function?
Well there are a large number of books that you can learn from, but to hep whittle down the list, there is a very good thread on JavaScript books that you’ll find stickied at the top of the JavaScript forum.
Go to the documentation for datepicker, and in the Options, select dateFormat.
You will see that it’s specified in the same manner that you have already used for showOn and buttonImage.
See the end of my previous post where I copy/pasted an example from working code.
As you might imagine, we find that the documentation becomes a very useful tool.
It can also make for an effective weapon too when printed and bound
Ahh good, now we’re getting down to the crux of the matter.
There is a misunderstanding going on here. The monthNames and monthNamesShort are not intended to change how the date appears in your text field. Their purpose is for internationalisation, so that you can specify a French spelling, or Japanese spelling for the months.
To change the way that the date is presented in the form field, you should be using the dateFormat option
That’s right. jQuery is nothing more than well-written JavaScript.
For example, here is the hide function:
hide: function( speed, callback ) {
if ( speed || speed === 0 ) {
return this.animate( genFx("hide", 3), speed, callback);
} else {
for ( var i = 0, l = this.length; i < l; i++ ) {
var old = jQuery.data(this[i], "olddisplay");
if ( !old && old !== "none" ) {
jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
}
}
// Set the display of the elements in a second loop
// to avoid the constant reflow
for ( var j = 0, k = this.length; j < k; j++ ) {
this[j].style.display = "none";
}
return this;
}
},