Input inside Fancybox
问题 I have a very strange problem with Fancybox. I can't seem to get the .val() of the inputs which are displayed in Fancybox. They have a value of "". The inputs outside of Fancybox, however work. My code: <script type="text/javascript"> $(document).ready(function() { $('a#inline').fancybox({ 'hideOnContentClick': false, 'frameWidth': 500, 'frameHeight': $('#avatars').height(), 'callbackOnShow': function() { $('#gallery div img').click(function(){ $('#inline img').attr('src', $(this).attr('class