js get color of class code example Example: get color from classname var color = $(this).css("background-color");