I'm having trouble creating a code that is simple, so when I click on a div
it changes color and when I click it a second time it opens a alert
with the name of the color.
Can be in jQuery or js
$(document).click(function() {
$(".cor").css("background", "blue");
});
$(".cor").click(function() {
alert("HTML: " + $("#test").html());
});