I ran into the same problem. Apparently, when you create content on the page from which you want to open Fancybox, it creates a mirror div of the original content. In my case, the controls were wrapped in a div that fancybox creates named, "fancy_div"
I managed to select the control and get its value using the following format for the selector:
$ ('# fancy_div [id = InputText]'). val ();
Your controls may exist elsewhere in Fancybox. It’s best to look at the viewource, but it’s difficult.
To go to the viewing source, use the following technique: Put this tag in your form: Get value Open the form, click on the tag to open a warning window.
Make sure the cursor is inside the page content (find the control and press).
Right-click the control and select View Source.
There are a bunch of divs, so find a div containing your content.
Hope this helps.
source share