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 tryed a lot of diffrent variants of this and it just usualy makes syntax error or somehting else, but nothing works.. I also searched about this question but couldnt find anythign that would help me.
I am verry inexperianced with JQuerry, but I really need to get this working.
Thanks
Aucun commentaire:
Enregistrer un commentaire