jquery grabbing current div or wildcard placeholder for show/hide function
<p>i have the code below</p>

<pre><code>&lt;div id=topbar&gt;
&lt;a class="nav" href="#" onClick="if($('#embedding').css('display') == 'none') { $('#embedding').show('fast'); } else { $('#embedding').hide('fast'); } return false;"&gt;Show Details&lt;/a&gt;
&lt;div id=embedding&gt;Content&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>In the link to show the embedding layer, is there any way instead of putting #embedding, i can do something so it grabs the next div so i can use this dynamically?</p>

<p>Wanting to use this to format some MySQL results in PHP.</p>

<p><strong>UPDATE</strong>
for those who are wondering, this is the solution</p>

<pre><code>&lt;a class="nav" href="#" onClick="if($(this).next('div').css('display') == 'none') { $(this).next('div').show('fast'); } else { $(this).next('div').hide('fast'); } return false;"&gt;Show Details&lt;/a&gt;
</code></pre>
