How would one go about removing a hidden variable when the
autocomplete is left invalid?

I tried:

$(".autocomplete_search").result(function(event, data, formatted) {
                if (data)
                        $(this).next().val(data[1]);
                else
                  $(this).next().val('');
        });


But I think result doesn't get fired if the textbox loses focus
without selecting a valid value.

Reply via email to