JQuery Autocomplete: Submit Form on selection?

By : ILT
Source: Stackoverflow.com
Question!

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 out and then I have to make press "return" a 2nd time, or click the submit button.

I've tried a few SO examples, but I could not get them to work.

How do you submit the form automatically when the selection is made?

By : ILT


Answers
  select: function( event, ui ) {

          if(ui.item){

           $(event.target).val(ui.item.value);

    }

           $(event.target.form).submit();

                  });


This video can help you solving your question :)
By: admin