another Gotcha - adding event to dynamically added control

This time the culprits were Chrome and IE.

The table I dynamically pulled had a select all button. But the onclick was never getting fired. The work around was quite simple. I had to attach the event to the control once again. Then the onclick event worked.

Attaching the event is quite simple. 

document.getElementById('button').onclick = functionName;


Popular posts from this blog

Avalum Naanum Lyrics

Shahul Hameed still lives...

Sikkim Tugs My Heart