Hello,
I'm trying to understand JS calls from a form (so what?), but I'm having a few issues and would like some 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 form responses to stop there in the 'Full Name' fields and the others.
How to do this, and how do I call js in the form?