Ok, so I made a little script that I use to change the border of a div, but it doesn't seem to work
This is my code.
function changeBorderType(px, rr, gg, bb) { $("#colorBox").css({"border": px+"px "+ getBorderType() +" rgb("+ rr +","+ gg +","+ bb +");"}); console.log("border: " + px+"px "+ getBorderType() +" rgb("+ rr +","+ gg +","+ bb +");"); }
The output that Iam gets from console.log is tho correct
border: 1px solid rgb (231,212,164);
But there are no effects on the page, the border does not change, or something as such.
I also tried checking the item to see if there are any changes or not, but it seems that there are no changes at all
EDIT:
Just to add, this is my current CSS (default one)
#colorBox { width: 40%; height: 80%; background-color: rgb(0,0,0); display: inline-block; margin-top: 20px; border: 1px solid rgb(136,104,121); }
source share