JQuery Autocomplete: Submit Form on selection?

前端 未结 5 1671
后悔当初
后悔当初 2020-12-24 12:50

Using JQuery Autocomplete on a traditional HTML form.

Trying submit the form (the old-fashioned way) when a selection is made.

But the input box gets filled

5条回答
  •  忘掉有多难
    2020-12-24 13:56

    You submit your selected filed by calling the Submit button ID in this field , even if the code is in other page too.

     document.getElementById('submit').click();
    

提交回复
热议问题