toggle inline style

toggle inline style

Hi

how can I  toggle  (add and remove style declaration)  with click(function())
  1. style="left:100px;top:50px;"

to get
remove
  1. <div id="myDiv">content</div>
add
  1. <div id="myDiv" style="left:100px;top:50px;">content</div>
with toggle
thank you