I need some help in reordering the divs to its original place when the window size is greater than some value.
so what I am doing is onresize i am getting window size and if window size is < 880px value than I am reordering divs.
Now I want to reorder those divs to their original size onresize and if window size is > 880px.
so can someone please help me with that?
I am using following example code:
var div1 = document.getElementById('div1');
var div4 = document.getElementById('div4');
var parent = div1.parentNode;
parent.insertBefore(div1, div4);
Thanks

New Topic/Question
Reply


MultiQuote



|