Jquery in a Nested aspx page doesnot work!

Jquery in a Nested aspx page doesnot work!


I have written simple jQuery for a button click and this jquery code is in a child page of a master page

here is the code:
 <script type="text/javascript">
         $(document).ready(function() {
         debugger;
        $(function runeffect() {      
        $("#btnRun").click(function() {
  $(this).find("#content").find("#myTable").find("#trname").find("#tblSubTable").find("#tdGridView").show(5000);                
          });
        });
  
    </script>

I have put this code inside the content tag. when I run the application and click the button javascript code is not hit! I guess it might be due to the nesting inside the master page.

How and where could I place the script tag to get the javascript code running?
Also Please let me know if the below statement is correct:
 $(this).find("#content").find("#myTable").find("#trname").find("#tblSubTable").find("#tdGridView").show(5000);   
I am trying to access a gridview here inside a content template which has a table and row which intern has another table 
Please Help.. Im totally new to jquery