Reputation: 2305
I have this in CSS:
.inner{ margin-left: -100% };
How would I assign this in jquery?
$('.inner').css("margin-left", -100%);
doesn't work.
Upvotes: 0
Views: 464
Reputation: 5301
Include quotes or double quotes around the value.
$('.inner').css("margin-left", "-100%");
Upvotes: 1