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...
<div class="map" style="top:200px; left:100px;">Map</div>
I have a button that I want to remove the top and left attribute from the inline style on the div when clicked, Is this possible with jquery?
' '
doesn't count as an empty value only''
– Peter Berg$('selector').prop('style'); cssObject.removeProperty('top'); cssObject.removeProperty('left');
– ilgaar