How do I know which javascript controls the behavior of a common element on a web page?

Take a look at this script http://jsfiddle.net/52VtD/2635/

Inside it you can see one tooltip.

Suppose we did not look at the violin and could not see the javascript source, but we wanted to know what controlled this tooltip behavior?

Answer

$("#tooltip1").tooltip();

So, how can we find the answer using chrome or firefox inspector, or some other material for checking debugging / browser? Preferably, this would be fast, as opposed to downloading all .js files and preventing them in the IDE, and then manually searching.

+3
source share
2 answers

. , .

, #tooltip. Chrome . , " ", " " . . , , - . , , , jQuery. , , API , .

, , jQuery . , , . , jQuery. , , , - "#tooltip", jQuery. , JS "#tooltip" , .

Chrome, Ctrl + F #tooltip. enter , , :

$("#tooltip1").tooltip();

. , , , , , , Javascript. , .

+1

* Chrome ** , f12, " ". .

, - :) enter image description here

+1

All Articles