Loading a file with a name defined by attr
<p>I have an image...</p>

<pre><code>&lt;img src="images/dut7_thumb.jpg" alt="images/dut7.jpg" filetoload="test.html"/&gt;
</code></pre>

<p>I am trying to load the file "test.html" into the div with id "words" using...</p>

<pre><code>$list.find('.st_thumbs img').on('click',function(){
   var $this = $(this);
   $("#words").load("text/"+$this.attr('filetoload'));
});
</code></pre>

<p>...but filetoload is undefined?</p>

<p>How do I grab that file name?</p>

<p>Edit: Code was in the wrong place. Works fine now. </p>
