Skip to content

Instantly share code, notes, and snippets.

@vvikramjhu
Created February 2, 2014 15:07
Show Gist options
  • Save vvikramjhu/8769695 to your computer and use it in GitHub Desktop.
Save vvikramjhu/8769695 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
$('button').click(function() {
var toAdd = $("input[name=message]").val();
$('#messages').append("<p>"+toAdd+"</p>");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment