jquery .attr variable use
<p>I am trying to get the following simple function to open divs with the same name of the grabbed "name" attributes in other divs, any help would be appreciated.</p>

<pre><code>&lt;script type="text/javascript"&gt;
 $(document).ready(function(){
 $('.div').click(function(){
     var nip = (this).attr("name");
     $('#nip').show()
 })
    });

 &lt;/script&gt;  
</code></pre>
