css(properties)の使い方


$("div:eq(0)")
  .text("red")
  .css({ "color" : "white", "background-color" : "red" });
$("div:eq(1)")
  .text("green")
  .css({ "color" : "white", "background-color" : "green" });
$("div:eq(2)")
  .text("blue")
  .css({ "color" : "white", "background-color" : "blue" });
  
<div></div>  
<div></div>  
<div></div>