当用户单击选项时,fancybox 会弹出所有选项。当用户单击任何列出的选项时,与该选项相关的内容会出现在同一个弹出窗口中,但fancybox 不会弹出(自动调整高度和宽度)围绕新的 div 内容。请帮助
<div class="modelbox" id="#options">Options</div> //when user clicks here a fance box appeares with few options,say three.
<div style="display:none" id="options">
<p onclick="$("#option1div").show()" >option 1</p> //when user clicks anyone one of these option.then the belov div opens on the fancy form. **problem is that.div opens but with the scrollbars and hight of the fancebox pop up form neve adjusted acorting to the new div content. help plz**
<p onclick="$("#option2div").show()">option 2</p>
<p onclick="$("#option3div").show()">option 3</p>
<div>
<div style="display:none" id="option1div"> large data here</div>
<div style="display:none" id="option2div"> large data here</div>
<div style="display:none" id="option3div"> large data here</div>