Create only one and not several modals

0

Well, I have a registration system and in the part of updating the user data it generates a modal, but the page is getting heavy because there are many records and each record has a modal, how do I create only one and popular the same according to each record?

    
asked by anonymous 25.11.2017 / 20:20

1 answer

0

Basically open the modal through a function and pass as an parameter an object or array to be displayed in this modal. This way you will only use one modal and the desired performance will be achieved.

This should be enough, but if you post some code, I'll edit this solution in order to apply it to your code.

    
25.11.2017 / 20:26