'How can I find the definition of a method in code?

Okay, so I recently had an issue I needed to resolve in old code (Code that I haven't written). I have got so far with fixing this and hit another wall. I suspect there is an issue within a method in the code so I need to see the code in this method to determine if that is the issue as I'm debugging completely manually.

Issue is, is that I can't find the definition of the method. It is no where to be found inside any of the files within the same directory. Does anyone have any idea how I may go about looking for a method. It is clearly somewhere as the application wouldn't work at all without it.

<div class="col-md-6" id="Invoice"><img src="<?php echo asset_url(); ?>images/loading.gif" width="15px" onload="AlertTest('Invoice','<?php echo $FI; ?>')"></div>

It is the AlertTest() I am looking for.

NOTE: highlighting and selecting 'Go to definition' in VS does NOT work because there is 'no definition found for AlertTest()' :/



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source