954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Trigger onChange manually

Greetings. Please advise me on the following.
I have a select form element and have defined its onChange action.
I have another button, which when pressed opens up a new pop-up window. A value will be selected from this child window and the value will be passed back to the opener window to the select element I mentioned previously. Now the value in the select element has changed but the onchange action is not triggered. How can I trigger the onchange event manually ?
Please advise.

red_evolve
Posting Whiz
313 posts since Jun 2003
Reputation Points: 53
Solved Threads: 1
 

Use a function. Set the onChange() handler to run this function.

Call the same function at the conclusion of your "popup" script.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

Thanks for your suggestion. I've made it to run.
Thank you again.

red_evolve
Posting Whiz
313 posts since Jun 2003
Reputation Points: 53
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You