Skip to main content
minor comment added
Fonte Link

Você está usando o .each() incorretamente; segue modificação

$('.conteudo'conteudoA').each(function (i, e) {
    $(e /* pode ser this*ou tb*this*/).prop('name', 'A-' + (i + 1));
});

https://api.jquery.com/each/

The .each() method is designed to make DOM looping constructs concise and less error-prone. When called it iterates over the DOM elements that are part of the jQuery object. Each time the callback runs, it is passed the current loop iteration, beginning from 0. More importantly, the callback is fired in the context of the current DOM element, so the keyword this refers to the element.

Você está usando o .each() incorretamente; segue modificação

$('.conteudo').each(function (i, e) {
    $(e /* pode ser this tb*/).prop('name', 'A-' + (i + 1));
});

https://api.jquery.com/each/

Você está usando o .each incorretamente; segue modificação

$('.conteudoA').each(function (i, e) {
    $(e /*ou this*/).prop('name', 'A-' + (i + 1));
});

https://api.jquery.com/each/

The .each() method is designed to make DOM looping constructs concise and less error-prone. When called it iterates over the DOM elements that are part of the jQuery object. Each time the callback runs, it is passed the current loop iteration, beginning from 0. More importantly, the callback is fired in the context of the current DOM element, so the keyword this refers to the element.

Fonte Link

Você está usando o .each() incorretamente; segue modificação

$('.conteudo').each(function (i, e) {
    $(e /* pode ser this tb*/).prop('name', 'A-' + (i + 1));
});

https://api.jquery.com/each/