panel.style.left in JQuery
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开发者_如何学JAVA It didn't work
This is the way:
panel.css("left", 150);
Try: panel.css('left', '150px');
Check the docs on the .css() method.
精彩评论