for(var i=0;i<10;i++){
var x = ".itemborder" + i;
var color='#'+Math.random().toString(16).substr(2,6);
$(x).css("border-color", color );
}
output : rgb(023, 230, 111)
var x = ".itemborder" + i;
var color='#'+Math.random().toString(16).substr(2,6);
$(x).css("border-color", color );
}
output : rgb(023, 230, 111)
No comments:
Post a Comment
Do you think it could be useful for you? Share your thoughts with us!