Issue with $(this) in JQuery
<p>Hey guys I have the following:</p>

<pre><code>$(".views").click(function() {
    $(this).(".views").show();

});

$(".closeviews").click(function () {
    $(this).(".closeviews").hide();

});
</code></pre>

<p>This will open up a list based on which view list they want to look at,  for some reason it's telling me <code>Uncaught SyntaxError: Unexpected token (</code> </p>

<p>Once I remove the <code>(this).</code>  it goes away, so I am kinda confused as to why it is telling me that.</p>

<p>EDIT:</p>

<p>I changed to this:</p>

<pre><code>$(".views").click(function() {
    $(this).find(".views").show()

});

$(".closeviews").click(function () {
    $(this).find(".closeviews").hide()

});
</code></pre>

<p>Does nothing, if I go to the view list above it opens this one and that one.</p>

<p>UDATE:</p>

<p>HTML:</p>

<p>The one I am trying to open with the above script -</p>

<pre><code>&lt;input type='button' value='View Your Employees' class='views' name='views' /&gt; 
&lt;input type='button' value='Close' class='closeviews' name='closeviews' /&gt;
</code></pre>

<p>The one I click above this one, opens the above plus this one:</p>

<p>Script:</p>

<pre><code>$(".notempl").click(function () {
    $(".notempltable").show();

});

$(".closenotempl").click(function () {
    $(".notempltable").hide();

});
</code></pre>

<p>HTML:</p>

<pre><code>&lt;input type='button' value='View Employees' class='notempl' name='notempl' /&gt; 
&lt;input type='button' value='Close' class='closenotempl' name='closenotempl' /&gt;
</code></pre>

<p>UPDATE:</p>

<p>Hey guys thanks for all the help, got it sorted out.  I actually was telling the wrong thing to show and hide.  Each list is populated by a PDO statement and a table so I needed to show the table, hide the table not the button.  </p>

<p>Thanks guys :) </p>
