[jQuery] Re: [autocomplete] Problem with .result

2009-01-26 Thread Styx
, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: You could add another keyup-event-handler to the input field, and clear the id field. As long as that runs before the result-handler is setting the data, it should give you the result you need. Jörn On Fri, Jan 23, 2009 at 5:09 PM, Styx

[jQuery] [autocomplete] Problem with .result

2009-01-23 Thread Styx
Hi. I have two fileds. For exmple: $(#name).autocomplete('seatch.php'); $(#id).result(function(event, data, formatted) { if (data) { $(#id).val(data[1]); } If i select sometfing in autocomplete field, my id field will have id of this item. After submit I have two fields - one wieth