When creating a jQuery UI datepicker on a detached div it works fine in Firefox but in Chrome it gets zero height.
$('
').datepicker().appendTo('#some-element');
When attaching the div to the document first it works fine:
$('
').appendTo('#some-element').datepicker();
However, since the actual code is not that simple (lots of legacy code, so attaching the div before creating its contents is difficult) I'm looking for a solution where the datepicker works even when created on a detached div.
Demo:
http://jsfiddle.net/ThiefMaster/ZM95R/
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)