How to detect which js file is being used by the class of an element?

0

I am trying to check which files can be used by the class of a given element. Example:

<script src="arquivo1.js"></script>
<script src="arquivo2.js"></script>
<script src="arquivo3.js"></script>
<script src="arquivo4.js"></script>
<script src="arquivo5.js"></script>

<div class="classe1">...</div>

Assuming the div has jquery effects that use its class "class1", as I might know, which of the above files has (create) this effect? I tried the element inspector, but I could not.

I want to do this because I have a very cool effect and I want to do exactly that of the file I have, but there is a lot of it and I could not figure out how the particular effect works.

    
asked by anonymous 16.11.2015 / 13:44

1 answer

0

You can search within files by $(".classe1") or document.getElementByClass("classe1") .

You can also comment on all other files leaving only an uncommented one, or comment one by one to see if the effect stops happening.

<! --
<script src="arquivo1.js"></script>
<script src="arquivo2.js"></script>
<script src="arquivo3.js"></script>
<script src="arquivo4.js"></script>
-->
<script src="arquivo5.js"></script>
    
16.11.2015 / 13:53