I need help cloning an element already dynamically created with Jquery and add +1 in the element's 'value' and 'name'.
else if(valorSelect == 'listaSuspensa'){
$(this).parents(".questionario").find('.divResposta').html(
'<div class="divListaSuspensa">'+
'<ol>'+
'<div class="NomearOpcaoLS">'+
'<li><input class="w3-
input w3-left" type="text" name="txtMultiplaEscolha" value="Opção 1"
style="width:90%">'+
'<a id="id_ExcluirRespostaLS" class="excluirLS w3-
right w3-bar-item w3-button w3-right" style="color: grey;"><i
class="material-icons">close</i></a></li><br><br>'+
'<li><a class="AddQtdLS">Adicionar opção</a></li>'+
'</div>'+
'</ol>'+
'</div>'
);
The element I'd like to clone is the first 'li', and add it down below.