function toggleLinkSelection(link){
if($(link).css('border-top-color') == 'red'){
$(link).css({'border-top-color': 'transparent'});
} else {
$("div[id$='OptionsLink']").css({'border-top-color': 'transparent'});
$(link).css({'border-top-color': 'red'});
}
}
Am I doing something wrong in my if statement? It never tests true. In the browser I inspect item and it should test true. I've tried replacing red with #F00 and #FF0000 and that doesn't help. The link variable = #testID Thanks.
console.log($(link).css('border-top-color'))and see what you get?