I have a form that is a fixed number of rows pulled from the database, with a drop-down on every row that contain the same options. I have some javascript that runs after the form is submitted to pull out all the options that are not selected anywhere, and display them in a list below the grid. This works when viewing the submission, however it only partially completes when generating the list for creating a PDF. Is there some way to delay the completion of the PDF? Or for the pdf to not trigger until a specific event has fired? The javascript runs on $(document).ready.
EDIT: If it wasn't clear, I need the PDF to not generate until after javascript execution has completed.