After you have bound your keyup action you can add another triggering
event like so:

$('#Query').bind('change', function(){
  $(this).trigger('keyup');
})

On Sep 9, 3:36 pm, "Dave Maharaj :: WidePixels.com"
<d...@widepixels.com> wrote:
> I have a simple form field that runs a query.
>
> I have
>
> $('#Query').bind('keyup', function() {
> ...delay then search
>
> so after key up and delay it runs the search.
>
> Now when I click on the #query field the dropdown appears with my previous
> search text...if i select one it goes into the #query field but nothing
> happens becasue the script is waiting for keyup action.
>
> Can I add multiple events to trigger the query? If so how or what would be
> the best idea?
>
> Thanks,
>
> Dave

Reply via email to