Skip to content
Advertisement

How to create div cards in html dynamically using javascript & jquery?

I created this card for design purpose but i want to create html card dynamically using JavaScript or jQuery, means if I pass 5 value in a loop then 5 cards create with same design. How can I do this?

JavaScript

I created this card for design purpose but i want to create html card dynamically using JavaScript or jQuery, means if I pass 5 value in a loop then 5 cards create with same design. How can I do this?

Advertisement

Answer

So as I asked you, you’re using a database to store the data from the cards right? So all you need is create the connection to the database, then fetch the result with a loop to display one by one the cards.

JavaScript

Hope it helps, you can also find info on Google searching–> Dynamic Tables PHP, MySQL

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement