How to submit a form without a full-fledged submission?

  • 0
    There are three text boxes in the
    tag when filling out forms, buttons from 1 to 50 are loaded with different data-id
    and it is necessary that when the button is clicked, everything is transmitted by the post method to parse.php (namely the values ​​from the inputs and the value of the clicked data-id) with the transition to parse.php, and not by loading it with ajax on the current page.
    How to implement this?
    JavaScript Anonymous, Mar 19, 2020

  • 1 Answers
  • 0
    Something like

    let form = <... form selector ...>
    f.method = 'post'
    f.action = 'parse.php'

    and add all this to the button click handler

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!