How to create elements with jQuery
?
I'll try to explain ...
I have 2 screens, card registration and card display .
For each registered card, I send it to the server and insert it into the internal database. So far so good.
But for each card registered, I must also populate my%% of card viewing.
It looks like this:
Thecodefortheimageaboveisthis:
<divclass="row corpo-cartoes">
<div class="col s12 m7" style="width: 100%;">
<div class="card">
<div class="card-image">
<img src="img/apresentacao.jpg">
<span class="card-title">Card Title</span>
</div>
<div class="card-action icone-meu-cartao">
<a href="#" ><i class="material-icons">code</i></a>
<a href="#"><i class="material-icons">crop_free</i></a>
<a href="#"><i class="material-icons">visibility</i></a>
<a href="#"><i class="material-icons btn-editar">edit</i></a>
</div>
</div>
</div>
</div>
My question is:
How do I create the above code with html
to go populating on the display screen of cards for each registered card?
Or would you have a better way to do this?