triggering an onchange event of a select box
Posted
by swathi
on Stack Overflow
See other posts from Stack Overflow
or by swathi
Published on 2010-05-29T02:19:53Z
Indexed on
2010/05/29
2:22 UTC
Read the original article
Hit count: 232
php
|JavaScript
Hi all,
I have a select box, which i can populate using two methods.
First - Just by selecting any one of the option in the select box.
Second - I have a link just beside the select box.Clicking this link takes me to a page2, which has the same options but as links in page2.When i click one of them , it populates the select box.
Selecting the option directly from the "select" triggers an onchange event in it. But when i click the link, select my required option from that page, it does not trigger the onchange event in the select box. I am not sure where i am doing a mistake.
Thanks in advance.
© Stack Overflow or respective owner