Created
November 14, 2013 01:37
-
-
Save gthomas3/7459806 to your computer and use it in GitHub Desktop.
hover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.category').hover(function() { | |
var categoryId = $(this).attr('id'); | |
$(this).append("<span class='delete' onclick='deleteItem(" + categoryId + ");'> <a href='#'>delete</a></span>"); | |
}, function() { | |
$(this).find("span:last").remove(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment