'Is it possible to see the JS related to the element in DevTools?
In the browser whenever I want to see a CSS added to the element I see it in the Styles section:
But what if I want to see a JS related to the element? Like, for example, a reference to the HTML element in a variable or that same variable related to functions, objects, and so on. Would it be possible in the same way as CSS?
I ask this because whenever I want to see some behavior in the element using JS I have to open the source code of the page in the browser and search line by line until I find the element code and that ends up being a lot of work.
Solution 1:[1]
No. You can look under events to see which of the elements events have handlers bound to them, but you can't see which variables hold references to a given element.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user229044 |

