$("#xxx").css("margin-left","val"); $("#xxx").css({"margin-left": "val", "background-color": "blue" });