When my button is clicked I change the color of the text,
after this copy changes text I would like to preform another action.
I wrote the following, but am not able to get a console or alert to work: http://codepen.io/leongaban/pen/IltKJ
$('#my_button').unbind('click').bind('click', function () {
$(this).css('background', '#666666');
$('#my_button').css('color', '#f58733');
if ($('#my_button').css('color') == '#f58733') {
alert('my_button has the color orange');
}
});
I tried the CSS I found from Tamas's answer here.
Any thoughts on why the alert doesn't get hit?