hi all,
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
unfortunatly, it doesn't. :(
does anyone know how it should be done?
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
Code:
document.getElementById("MyDiv").onClick = "MyFunction()"
does anyone know how it should be done?
Comment