1
I’m using this code to upload a page. html, however it does not create several as I would like, I have the feeling that it can only create it once. I would like to create several of them.
for(var i = 0; i < 4; i++)
{
$.post('linha.html', function (html)
{
$('#baseTorrent').html(html);
});
}
I don’t understand what you want to do. This code searches the same html 4 times and puts it in the same place! The loop makes no sense...
– bfavaretto
@bfavaretto But it creates 4 distinct htmls or it erases the last created and creates a new ??
– Lucas Caresia
Delete and recreate. You replace 4x #baseTorrent content
– bfavaretto
Maybe you want $('#baseTorrent'). append(html)
– bfavaretto
Perfect, could you put this as an answer please ??
– Lucas Caresia