1
Hello,
I’m trying to understand calls via JS from a form (so speak?), but I’m having a few problems and would like a help.
My form is:
Nome: <input type="text" name="name">
E-mail: <input type="email" name="email">
CPF: <input type="number" name="cpf">
Meio de Pagamento: <input type="text" name="pagamento">
<input type="submit" value="Enviar">
And a part of the JS code that will handle the information:
enviar.compra({
name: 'Nome Completo',
email: '[email protected]',
data: {
cpf: 'CPF',
pagamento: 'Cartão VISA'
}
});
I would like the answers of the form to end up there in the 'Full Name' fields and the others.
How to do this, and what I call the js in the form?
Your question was not clear, what is your problem? What do you want to do? The codes placed do not make sense to me.
– user13603
Edited question @Fernandobagno
– user78243