JS/AJAX: Submit form with timer and not a button click or refresh of page

前端 未结 3 691
迷失自我
迷失自我 2021-01-14 15:03

I am trying to submit a form without page refresh or a submit button. But i have only achieved to have the JS function submit the input box value. Is it possible to submit t

3条回答
  •  孤独总比滥情好
    2021-01-14 16:01

    If I understood well what you're asking, where it says //do your submit here you should put:

     $("#ytVideo").submit()
    

    where ytVideo is the id of the form you're trying to submit

    Good luck!

提交回复
热议问题