I have a business card app, when the user registers a card has a field of tags that are the key words of the card.
He can also edit this card, so you can edit the tags.
When he clicks edit, I put all the data in the card already in the fields and it looks like this:
Andthat'swheretheproblemlives,Idonotknowwhythekeywordfieldstaysthatway,itdoesnotlookliketheothers.
HereiswhereIcreatethisfield:
<divclass="row">
<div class="input-field col s12">
<i class="material-icons prefix">find_in_page</i>
<div class="chips chips-placeholder palavras-chave" placeholder="Palavras Chave"></div>
</div>
</div>
This is where I enter the tags that he has added to edit in the field if you want:
$(".chips").append(
'<div class="chip">
${results.rows.item(i).descricao}
<i class="close material-icons">close</i>
</div>'
);
Does anyone know what it can be? Why does not it fill at the beginning of the field like the rest?