Created
December 27, 2019 19:32
-
-
Save NandoKstroNet/aaeb885fd237395638b8043be3d780a3 to your computer and use it in GitHub Desktop.
Código para o curso Laravel 6 na Prática - Criando um Marketplace em http://codeexperts.com.br
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function drawSelectInstallments(installments) { | |
let select = '<label>Opções de Parcelamento:</label>'; | |
select += '<select class="form-control">'; | |
for(let l of installments) { | |
select += `<option value="${l.quantity}|${l.installmentAmount}">${l.quantity}x de ${l.installmentAmount} - Total fica ${l.totalAmount}</option>`; | |
} | |
select += '</select>'; | |
return select; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment