javascript - Event listener only for a variable -


i have following code:

var right = document.getelementsbyclassname("dreapta")[0];  function scaletext(){     right.style.backgroundcolor = "#111";     right.style.color = "white"; } right.addeventlistener('click', scaletext, false); 

can explain me why event not working?

the problem html,i had audio tag had removed. working :).ty guys , sorry bothering.


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -