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.

Recommended Answers

All 2 Replies

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.