look at the parse function and maybe provide another parse function suitable 
for your data format.
the result trigger will be able to update other fields when you select your 
choice.

On Sun, Sep 13, 2009 at 00:45, Althalos <g...@ekdahlproduction.com> wrote:

Hello
I'm using the following autocomplete plugin: 
http://docs.jquery.com/Plugins/Autocomplete

It's getting its data from an array, here are the first couple of
values:
data[0] = "Magnesium (s) | R: 11, 15 | S: 7/8, 43";
data[1] = "Saltsyra 4M (aq) | R: 36/38 | S: 2. 28";
data[2] = "Natriumnitrat | NaNO3 | R: 8, 22";

I have four different input elements:
- Name, which triggers the autocomplete
- three other ones

When the user enters something in name and the choses one of the
autosuggested lines, I don't want it to put that entire name into the
input window. I to ONLY put the name into it, the name is always the
first part of the string, the part before the first |.

Then I want to put the information between the first | and the second
| into the second input box, the information between the second and
third | into the third box, and the information left in the string I
want to put into a fourth input element.

How can this easiest be achieved?




--
alex

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to