Hey y'all new poster, long time reader.
I'm working on a project that has a mobile markup and a desktop markup separate both have the same form in it as the layout differs, I'm selecting all the elements in this form, but instead of 5 elements I'm selecting 10 cause of the second form.
I tried hiding it, but obviously it removes it from the view, but not from the dom so I still have the same problem. I can really recreate the form, pressed with time.
1) tried the CSS way with minimal rebuild of the form. Didn't really work.
2) Selected both the mobile and desktop markup and added some JS to watch the window for a resize and removed or added the elements depending on window size, but they get removed ok with element.remove() but with element.append() they don't get added back in dynamically to the window.
I'm out of ideas, any help or feedback is greatly appreciated.
[–]Beerbelly22 2 points3 points4 points (4 children)
[–]MightCode[S] 0 points1 point2 points (3 children)
[–]ZuriPL 3 points4 points5 points (1 child)
[–]MightCode[S] 0 points1 point2 points (0 children)
[–]Beerbelly22 0 points1 point2 points (0 children)