I am trying to do condition, that checks if my 8 classes are same border color, it executes something.
For example this:
var alt = $(".test").css;
var altt = $(".test").css("border", "5px solid green");
if (alt == altt) {alert()}
Just colors all borders green and doesnt pop up alert
I also tried a lot of different variants of this and it just usually makes syntax error or something else, but nothing works.. I also searched about this question but couldn't find anything that would help me.
I am very inexperienced with jQuery, but I really need to get this working.
Thanks