Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
<input name="item">
<button type="submit">Add Item</button>
<ul id="todo-items">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
// Now some unobtrusive javascript:
$('form').submit(function(e) {
var content = $('form').find('input').val());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.