Say I have a simple form (but it is quite long).
This form sends user data to the database, and after the first submission it is rare (99.99%) to ever be fully edited, only one section at a time.
I donβt want the user to have to scroll halfway to the desired section, then you need to scroll the same distance to send it.
<form> <div> <input type="text" /> </div> <div> <input type="text" /> </div> <div> <input type="text" /> </div> <div> <input type="text" /> </div> <input type="submit" /> </form>
This is a "VERY" basic structure. It will be considered a good practice to do something like this.
<form> <div> <input type="text" /> </div> <input type="submit" /> <div> <input type="text" /> </div> <input type="submit" /> <div> <input type="text" /> </div> <input type="submit" /> <div> <input type="text" /> </div> <input type="submit" class="afterFormSubmit"/> </form>
I'm not sure if there is a βbestβ way to do this, or if this is one of the best ways to achieve this?
Xhynk source share