javascript - jquery resets variable to default -


when open page sets css attribute of every object new margin, when change variable jquery again, resets default (the value when page loaded)

jquery error line:

main.btnc.css({ marginleft: main.espace, marginright: main.espace}); 

script jsfiddle: http://jsfiddle.net/bvhgd/

when call .css() meant change css code of object. mentioned main.btnc is? cannot object understand. should this

 $('#id').css({}); 

or other identificator of element (object) like:

   $(this).css({}); 

Comments