Customized function to load content using jquery ajax
<p>I'm trying to write a function in javascript that receive two arguments (target, content) to load content with ajax using $.load() jquery function, the code is above:</p>

<pre><code> function cargarContenido(content,target) { 
    $(target).load(content);
 }
</code></pre>

<p>I call the function like that and it doesn't work:</p>

<pre><code>&lt;a href="#" onclick="cargarContenido('hd.html','content')"&gt;
</code></pre>

<p>Thanks!</p>
