Saturday, November 19, 2011

Jquery div inline datepicker

In previous post i have given example on how to develop jquery autocomplete. In this post i will given how to use jquery date picker library on Div.The jquery  date picker would be  assign to the different controls and div's  using below jquery function.Here i will shown how to assign the data picker to div using jquery.
function(tar, inst) {
var divSpan = $(tar);
if (divSpan.hasClass(this.markerClassName))
return;
divSpan.addClass(this.markerClassName).append(inst.dpDiv).
bind("setData.datepicker", function(event, key, value){
inst.settings[key] = value;
}).bind("getData.datepicker", function(event, key){
return this._get(inst, key);
});
$.data(target, PROP_NAME, inst);this._setDate(inst, this._getDefaultDate(inst));
this._updateDatepicker(inst);
this._updateAlternate(inst);
}
Post a Comment

Bel