how to get fancybox textbox value after closing fancybox
<p>How to get fancybox textbox value after closing fancybox...I have tried like this</p>

<pre><code>'onStart' : function(){
        x = $('#fancybox-frame').contents().find('#comment_count').val();
        alert(x);
 },
 'onClosed': function(){
        x = $('#fancybox-frame').contents().find('#comment_count').val();
        alert(x);
 }
</code></pre>

<p>and Iam declaring var x at top of script also but it displayng undefined both the times....can anyone suggest me the correct way</p>
