reattach map to different div

Discussion created by fiallega on May 1, 2014
Latest reply on May 1, 2014 by fiallega
Is it possible to reassign the map object to another div on the page ?

      var map = new esri.Map('mapone');

so my map object is created with type esri.Map and attached to the div with id 'mapone'

I would like to do at some point something like this in my code

where 'maptwo' is the id of another div.  (I madeup the reattach method, but something like tis is what I am looking for) so that now my map will show in div 'maptwo'