jQuery element as a variable
<p>I have:</p>

<pre><code>function foo(element){
 var idName= element.innerHTML.split(" ").join("");
 $("#" + idName).fadeToggle(600);
}
</code></pre>

<p>and it is not working.
I'm just getting the text in a span and deleting the spaces.
I use idName as the id of a div, and i'm toggling the div.
I thought I could do this with jQuery?</p>
