I have created a comment form in a view and made it display as hidden so that I can make is appear in a lightbox using lightbox2.
The form mark up looks like this:
<div id="comment-form" class="hidden">
<div id="comment-form-inner">
........form code goes here.....
</div>
</div>
And then the link that open the lighbox looks like this:
<a href="*url* #comment-form-inner" rel="lightmodal" class="lightbox-processed">Add a review</a>
The the elements inside the div #comment-form-inner is displayed in the lighbox but some field doesn't seems to work such as the date picker field and the five star field. The date picker does not show up when the date text box field is active and the animated stars in the five star field just shows a select box.
Is there a way for the form fields to be able to render the javascript attached to those form elements?