Skip to content

Instantly share code, notes, and snippets.

@mrandyclark
Created October 14, 2011 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrandyclark/1288129 to your computer and use it in GitHub Desktop.
Save mrandyclark/1288129 to your computer and use it in GitHub Desktop.
<form id="new_size">
<input type="text" name="size_name" id="size_input" />
<input type="submit" />
</form>
<script>
$(document).ready(function() {
$("#new_size").submit(function(evt) {
evt.preventDefault();
console.log( "size-input": $("#size_input").val() );
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment