Check object type and create dynamic content accordingly
I'm working on application which will create dynamic content based on the type of object.
The object type can be 'company' or 'employee'.
The objects with the type 'employee' are created using bootstrap modal.
I'm facing with a small problem when I'm doing that.
The dyamic content is getting duplicated when I'm generating that. Also, when I add consecutive objects using modal, the content gets refreshed or lost.
How do I fix it?