私はこの奇妙な問題を抱えています。datepicker クラスを含む入力を fyncybox ラップに入れると、その入力をクリックしても datepicker が表示されません。
<a href="#test" class="fancybox">Open</a>
<div id="test" style="display:none;width:300px;">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque blandit, mi sed
</p>
<input type="text" class="datepicker"/>
</div>
$(".datepicker").datepicker();
$(".fancybox").fancybox({
openEffect : 'none',
closeEffect : 'none',
afterLoad : function() {
this.inner.prepend( '<h1>1. My custom title</h1>' );
this.content = '<h1>2. My custom title</h1>' + this.content.html();
}
});
フィドルでこの例を参照してください。
前もって感謝します ;-)