jQuery's .val() not working in Facebox
问题 I'm using Facebox (http://defunkt.github.com/facebox/) on one of my websites. Also i'm using jQuery extensively on the site. My problem is that the .val() function doesn't seem to work inside facebox. Now, this is the DIV that shows up as facebox : <div id="edit-tags" style="display: none;"> <script type="text/javascript"> $('.add-tag-form').submit(function(){ alert($('input.tags-input').val()); return false; }); </script> <form class="add-tag-form"> <input type="text" name="tags-input" class