The autocomplete plugin
(http://plugins.jquery.com/project/autocompletex) can do that. Set the
one up as usual, and configure the other one with a dynamic extra
paramter:

$("#second").autocomplete("url", {
        extraParams: {
                first: function() {
                        return $("#first").val();
                }
        }
});

Jörn

On Mon, Aug 25, 2008 at 11:22 PM, Mattl <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Anyone know of a jQuery plugin similar to the Autocomplete that could
> do the following?
>
> I have a mysql db with two columns, 'Lot No' and 'Description'.
>
> I have a form with two input fields, 'Lot No' and 'Description' and
> I'd like the 'Description' input field to be auto-populated from the
> database based on the entry the user puts into the 'Lot No' input
> field.
>
> ie if they typed in '1' into the 'Lot No' field then the 'Description'
> input field would call up the corresponding row entry to '1' from the
> database.
>
> Hope I've explained this clearly enough...
>
> Many thanks
> Matt
>

Reply via email to