How to select/assign values to element in modal from calling page

How to select/assign values to element in modal from calling page

In the index page, I have a div that serves as the modal container:

  1. <div class="modal" id="edit-document">
  2.         <div id="edit-document-container"></div>
  3.     </div>

On this page, I have a drop area that will accept files:

  1. <div id="fileUploadDropZone">
  2.         <input type="file" name="formlessUpload" id="formlessUpload" class="inputfile" multiple />

  3.         <p id="fds">Click/Drop Files Here</p>
  4.  </div>

And some CSS to make the area a drop area: 

  1. #fileUploadDropZone {
  2.     width: 100%;
  3.     height: 200px;
  4.     border: 4px dashed #808080;
  5. }

  6.     #fileUploadDropZone p {
  7.         width: 100%;
  8.         height: 100%;
  9.         text-align: center;
  10.         line-height: 170px;
  11.         font-size: 2em;
  12.     }

And code to initialize the modal (using LightView):

  1. $("#formlessUpload").on("change", function () {
  2.             // Get uploaded file(s) collection, assign to local variable. 
  3.             files = $("#formlessUpload").prop("files");

  4.             $.get(url, function (data) {
  5.                 // Load HTML from ajax GET into modal container div (MVC partial view).
  6.                 $("#edit-document-container").html(data);

  7.                 Lightview.show("#edit-document-container");
  8.             });
  9.         });

This all works as expected. At first, I had a form on the index page and loaded the HTML into a container div in the form on that page. Unfortunately, loading the partial view this way meant that my form inputs were null when posting to the controller. To get around this, I used hidden form field values outside of the modal container, and assigned the partial view's inputs to these hidden fields before posting via JavaScript. This was an ugly hack, and I found out the problem was that my form needed to be inside the partial view. So I put it there, but now I'm having trouble getting to those input form fields from the index page. What I want to do is this:

1. User drops files on the drop area. 
2. Files are saved to a local variable, and...
3. Modal pops up for user to enter some metadata about the files.
4. User submits the form in this modal, which then...
5. Copies the files from the local variable to a form input field and submits the form.

The LightView modal plugin has event callbacks, but I can't select the modal form fields using jQuery with or without using the callbacks. If I look at the resulting source code in Chrome after loading the modal, it's in the DOM, so I thought I should be able to query against it once it loaded. So far no dice. 

I either need to be able to select ajax-loaded HTML elements with jQuery, or I need to pass the uploaded files into the call to the modal (which I don't know if it's possible). Any suggestions?