Reputation: 27996
I want to do this using jquery :
panel.style.left = '150px'
How can I do this ?
I tried this:
var panel = $('#Panel1');
panel.position().left = 150;
but It didn't work
Upvotes: 2
Views: 5782
Reputation: 13322
Try: panel.css('left', '150px');
Check the docs on the .css() method.
Upvotes: 3