views:

6

answers:

0

I have 3 div layers (divContentA, divContentB, divContentC) with different contents (can have textbox or label). User is allowed to set the ordering base on their preference.

E.g divContentA set to 2, divContentB set to 1 and divContentC set to 3. These ordering setting will be store in DB.

I have 3 empty div layers (divBox1, divBox2, divBox3 -relative position) which will be used to keep the divContentX. I am just wondering can we move the content layer to the empty layer base on the ordering using dom/javascript/css/jquery/json? I may hv up to 10 empty and content layers each.

  • divBox1 contains divContentB
  • divBox2 contains divContentA
  • divBox3 contains divContentC

Many thanks : )