To download the code – Click Here
To delete or modify HTML contents we need to use JQuery or any other similar scripting methods.
In this example there are 3 DIV's and it can be deleted dynamically. When we click on the [ X ] button the corresponding DIV was deleted and also it send a POST request to delete.php so we can also delete the corresponding user from the database.
Live Demo