jQuery: Setting Multiple CSS Properties


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $("#myElement").css({
  2. "position" : "relative",
  3. "top" : "0px",
  4. "left" : "0px"
  5. });

Report this snippet


Comments


You need to login to view comments.