Skip to content

Instantly share code, notes, and snippets.

$(function() {
// add/show/hide .add-note button on hover
$('.module-body').hover(
function() {
var myel = $('> button.add-note', this).length ? $('> button.add-note', this) : $('<button class="btn btn-small add-note">Add Note</button>').appendTo(this);
$('.add-note', this).show();
},
function() {
$('.add-note', this).hide();
}