I got this script from here
function get_random_color() {
var letters = '0123456789ABCDEF'.split('');
var color = '#';
for (var i = 0; i < 6; i++ ) {
color += letters[Math.round(Math.random() * 15)];
}
return color;
}
$(function() {
$(".jump-response").each(function() {
$(this).css("background-color", get_random_color());
});
});
it assigns a random color. I am applying it all the individual element of the page.... $("div, a, p, img ...etc").each(function() {
Then how can I check which div has which color?
ultimately id like to end up with a very poor man's firebug. ...so if you hover over an element it will tell you what it is.
Thanks for any ideas