onsubmit refresh html form

前端 未结 5 710
春和景丽
春和景丽 2021-01-12 00:54

I\'m trying to use Javascript to submit the form\'s data. Here\'s the html.

//input fields here
5条回答
  •  难免孤独
    2021-01-12 01:15

    You will have to put the return false part after the post() function in the onsubmit handler, like so:

    //input fields here

提交回复
热议问题