164
rated 0 times
[
169]
[
5]
/ answers: 1 / hits: 139589
/ 11 Years ago, fri, january 24, 2014, 12:00:00
This is what I have and it's not working.
document.getElementById('form1').addEventListener('submit', function(){
document.getElementById('donate').style.display = 'none';
document.getElementById('topMessage').style.display = 'none';
});
The JavaScript console shows this error:
Uncaught TypeError: Cannot set property 'onclick' of undefined
Any suggestion is much appreciated.
More From » dom-events