I have a simpe jQuery autocomplete input box with the ID 'medID'
$('#medID').val("Par").focus().keydown();
I use the code above to put a value in the box, trigger focus and then key down to search.
It returns between 1-5 values.
How do i get it automaticly select one of the suggested values?
I have tried:
$('#medID').children()[0].focus().click();
and
$('#medID').children().focus().click();
But the suggested auto complete values are direct chilren of the input box?
This is so i can test this part of my system without the need of a user.