i have another problem. in my website, i have an option to create divs dynamically. the problem is that i want to do something when you click on one of those divs. i thought this would do the trick
Expand|Select|Wrap|Line Numbers
- document.getElementById("MyDiv").onClick = "MyFunction()"
does anyone know how it should be done?