NetTalk Central

Author Topic: Split form made easy with css and a little jQuery  (Read 1683 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 373
    • View Profile
    • Email
Split form made easy with css and a little jQuery
« on: September 27, 2019, 09:39:31 PM »
I needed to divide a form with many fields into two columns.
After spending a long time clicking "last in line" and moving fields around, I gave up. Every time a new field came, it all had to be moved around again. My patience ran out.
But why make it so difficult.
A single class, 20 lines jQuery, it all seems like I had dreamed of. It took under 10 minutes and is easy to maintain.

This is a very simple example. Of course, it can be styled much more. And if the right side has flow down below left, add a little @media ....


« Last Edit: September 27, 2019, 09:57:06 PM by Niels Larsen »

bshields

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Inhabit
    • Email
Re: Split form made easy with css and a little jQuery
« Reply #1 on: September 28, 2019, 10:43:02 PM »
thanks for sharing