This may be a stupid call me a noob.

I have a div with id of topBar. I have another div called middleBar. When an action happens I want to take topBar and add it as the first element within middleBar.

I checked the Dom stuff but not sure what is the best way to do it.

Any help would be appreciated.