Im building a draggable map that when the map is dragged the element is given a \'left\' and \'top\' attribute with values for each as so...
You can remove all of the contents in the style attribute by doing:
style
$('.map').removeAttr('style');
And you can remove specific styles by doing:
$('.map').css('top', ''); $('.map').css('left', '');