Getting a Autofilled Box to be recognize by onchange

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bytesFTW99
    New Member
    • Nov 2008
    • 15

    Getting a Autofilled Box to be recognize by onchange

    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.

    Code:
    <input type="text" id="testid" name="testid" value="" onchange="showUser(this.value)" /></p>
    this is the input box that is being filled by auto-suggest and then i want onchange="showU ser(this.value) " to execute to fill the form
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    so what you are saying is, that the onchange-event doesn't fire when you fill the input node programmaticall y? in this case just fire it manually - retrieve the node and call the method:
    Code:
    node.onchange(node.value);
    kind regards

    Comment

    Working...