Loading Content best practices
<p>I am sort of new to JavaScript and something has been bugging me.
Say I have some code like this:</p>

<pre><code>$('button').on('click', function() {
    var id = $(this).attr("id") // id being a file name sans extension
    $('.content').load(id + '.php');
});
</code></pre>

<p>Everything works just fine, but something in the back of my head tells me that this is bad practice. Any thoughts?</p>
