Skip to content

Instantly share code, notes, and snippets.

@liondancer

liondancer/form

Last active Aug 29, 2015
Embed
What would you like to do?
<form id="test-form" action="/test/" method="post">
<div class="test-button-set">
<button type="button" id="hdfs-test" class="btn btn-default btn-lg selected">HDFS</button>
<button type="button" id="hive-test" class="btn btn-default btn-lg">HIVE</button>
<button type="button" id="hdfs-hive-test" class="btn btn-default btn-lg">BOTH</button>
</div>
<button id="submit-test" type="submit" class="btn btn-default btn-lg">Submit</button>
</form>
var testRun = document.getElementById("test-form");
testRun.addEventListener('submit', function(event) {
// logic
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment