{/literal}
// Workaround for possible duplicate ids in the dom - select by name instead of id and exclude already initialized widgets
var $dateElement = $('input[name={$displayDate}].dateplugin:not(.hasDatepicker)');
{/literal}
// Workaround for possible duplicate ids in the dom - select by name instead of id and exclude already initialized widgets
var $dateElement = $('input[name={$displayDate}].dateplugin:not(.hasDatepicker)');