PDA

View Full Version : AJAX Auto Complete help...


gillweb
06-27-2009, 10:29 AM
I am using a nice auto-complete script I found here: CLICK (http://nodstrum.com/2007/09/19/autocompleter/)

Works perfectly for what I want BUT I need to somehow not only have the "country" name populate into the text box field but also the "country" id associated with it to be populated into a hidden form field. Can anyone help me with this?


<input name="contact_name" type="text" maxlength="255" size="20" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
<input type="hidden" name="contact_ID" id="contact_name" value="" />