Skip to content

Instantly share code, notes, and snippets.

@valdiney
Last active Aug 29, 2015
Embed
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>
</form>
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