vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.76k stars 774 forks source link

appendTo #296

Open jgilligan113 opened 5 years ago

jgilligan113 commented 5 years ago

seems using the following is not working for me. Has this issue been reported? I see this one as well, but if there is a method to change the element appended to in the options I'd like to control that per instance of remodal.

It is a bad idea, but you can do it. Move the block of the modal to the specific div with detach and appendTo jquery methods.

<div class="remodal" data-remodal-id="modal_id" data-remodal-options="appendTo: document.getElementById('day1')">

replacing document.body with a form element with the id of 'day1'