Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 14
help needed with javascript and "this" object
The result i would like to get is explained in this code (js pannel). https://code.sololearn.com/WErAwh8fnRT8/#js An element's onclick is listenend, and i would like to catch a style property of this element and copy it to another. Can you tell me how i can do this ? Thank you : )
5 Respostas
+ 3
You can only read inline css by element.style.
To read external css, use getComputedStyle(element).
https://code.sololearn.com/WNqeyFk7F370/?ref=app
+ 15
įŗ ! į į¶ įŖ
CalviÕ²'s solution works fine, but i'm interested by your solution if it's a different one. Understanding what happens with all these ways to create functions with JS is not very intuitive when coming from python š
I "tried to try" š
what you suggest, but did not see a difference. Could you be more precise how to do it ?
+ 12
Yes, perfect šš
Thank you so much CalviÕ² !
My problem is solved.
+ 12
įŗ ! į į¶ įŖš
Got it, thanks
+ 2
Haha