Modal window using jquery

Modal window using jquery

  
Hi,

I'm creating a modal window using jquery. I'm achieving this adding jquery libraries needed and with some html hardcoded. In pratical terms, i have a button that calls a modal window, wich is a div created in my code, although some elements are added in the code directly. My outsystems problem is, when i hit the button, this modal div, is created outside outsystems tag form. This causes the variables in the textboxes are passed empty. How can i make it be inside the tag form?