With jQuery.css() I\'ve been told I can use the following two functions for the same results:
$(\".element\").css(\"marginLeft\") = \"200px\";
$(\".element\
Late to answer, but no-one has specified that css property with dash won't work in object declaration in jquery:
.css({margin-left:'200px'});//won't work
.css({marginLeft:'200px'});//works
So, do not forget to use quotes if you prefer to use dash style property in jquery code.
.css({'margin-left':'200px'});//works