append($('<button>').text("Save Changes") .attr('title', 'Save your changes [s]') .attr('accesskey', 's') .on("click", save)); contents.append($('<br>'));...