16 Jan 2022 by 123usersomeone
I need to write a loop which adds 10 div elements and sets the contents to the count value ( 1, 2, 3, …). Set the color of the first five elements are red and the last five elements are green using these methods : attr(), property() and style() ...