Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
<form if="form_cadastro" method="post" action="functons.php">
<input type="text" id="nome" name="nome"/>
<button type="submit" id="gravar">Gravar Dados</button>
var form = document.getElementById('form_cadastro'),
nome = form.nome;
gravar = form.gravar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment