Relative Content

Tag Archive for eventhandler

onclick event works only the first time

Trying to add two event handlers on two elements respectively. The second element will only appear in DOM after users clicks the first element. My problem is the first event handler only work for one time, the second event handler does not work at all. Would like to seek advice from experts here. Thanks.