O
O
Olga Zhizhka2015-11-10 13:41:41
css
Olga Zhizhka, 2015-11-10 13:41:41

How can I fix, when closing the reveal modal window, the content remains?

Please help me figure it out.
I use the plugin for modal windows reveal modal - 2web-master.ru/reveal-modalnye-okna-na-jquery.html...
Modal windows contain registration and login forms, and there are custom checkboxes.
If you put a check mark in the modal window and close the window, the check mark remains on the page.
As I understand it, the internal contents of the window are not deleted.
How can this be fixed in this plugin, maybe someone knows, please advise ways to solve it.
Thanks in advance for your replies

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sorokin, 2015-11-19
@replytoall

I made modal windows with bootstrap. I use the following script to remove the content of a modal window

<script type="text/javascript">
    $('body').on('hidden.bs.modal', '.modal', function () {
        $(this).removeData('bs.modal');
    });
</script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question