Toggling not working properly in node--contenttype.tpl.php file I am theming a node of type "test".
I am using toggling in this "node--test.tpl.php" file.

Below is my code in "node--test.tpl.php":

    &lt;div id ="block1" class="block_custom"&gt;
    &lt;a href="javascript://" &gt;&lt;h1  class="active_custom"&gt;Property&lt;/h1&gt;&lt;/a&gt;
    &lt;div id="block1_content" style="background-color: rgb(233, 233, 233);" &gt;
        &lt;table cellspacing="0" cellpadding="3" class="tabledata"&gt;   
    &lt;tr&gt;
    &lt;td valign="top" nowrap=""&gt;
    &lt;b&gt;MLS #:&lt;/b&gt;
    &lt;/td&gt;
    &lt;td valign="top"&gt;
    &lt;?php echo $node-&gt;field_listing_id['und']['0']['value'];?&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;


code in javascript file is

 (function ($) {
        $('#block1 &gt; a').click(function()
       {
        $("#block1_content").toggle("slow");

         });

  })(jQuery);


Loading the java script files in template.php 

drupal_add_js("themes/bartik/custom.js", $type = 'file', $media = 'all', $preprocess = FALSE); 
drupal_add_js("themes/bartik/jquery.min.js", $type = 'file', $media = 'all', $preprocess = FALSE);


jqueries and jquery plugins are enabled in modules.

but toggling is not working.

How to do toggling using jquery
Try writing it when document get ready like this:

jQuery(document).ready(function ($) {
        $('#block1 a').click(function()
       {
        $("#block1_content").toggle("slow");

         });

  });