Getting a Autofilled Box to be recognize by onchange

Discussion in 'JavaScript' started by samsung88, Jan 2, 2010.

  1. #1
    I have auto-suggest that brings down first and last name into a input box, it also brings into another input box the id of the selected item.

    on that id i want to be able to auto fill a form from there.

    right now i have it set up but and it auto-fills with lets say 55 but it does not execute the code to fill in the form.

    however if i type something into that box it fills the form.

    my question is how is it possible to have the to see eachother.

    <input type="text" id="testid" name="testid" value="" onchange="showUser(this.value)" /></p>
    Code (markup):
    this is the input box that is being filled by auto-suggest and then i want onchange="showUser(this.value)" to execute to fill the form
     
    samsung88, Jan 2, 2010 IP
  2. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #2
    I think you need to call showUser() inside from the auto fill function.
     
    greatlogix, Jan 6, 2010 IP