Give your Zip field an ID, then use $('#zip').value() instead of
form.ZIP.value.  Or maybe it's .value without parenthesis, I don't
remember, and I'm not in the mood to go look it up for you.  :)  But
bottom line, don't use 'form.ZIP'.  That's the part that isn't working.

Hi John,

The input-field for the zip-code has the id zip already.

Unfortunately this doesn't work.
        $("#street").autocomplete('search.php?what=street&
                add='+$('#zip').value(), {
The script search.php isn't called. Nothing happens.

The other possibility also doesn't work
        $("#street").autocomplete('search.php?what=street&
                add='+$('#zip').value, {
In search.php the parameter "add" is undefined.

You wrote, you are not in the mood to look for me. Where would you look? I can do it too.

Best regards
--
Frank Becker

Reply via email to