Getting error Uncaught TypeError: string is not a function
<p>I'm using this code here for a webpage I'm fooling around with:</p>

<pre><code>$(function() {
    console.log('Here');
    $.ajax({
        type: 'POST',
        url: 'http://api.bf3stats.com/pc/playerlist/',
        data: {
            players: ['xxx', 'xxxx', 'x']
        },
        success: function(data) {
            loadData(data, 'x', 'f');

        }
    })
})

function loadData(data, uname, $) {
    $('#fWins').text("135");
}
</code></pre>

<p>But once it hits the <code>loadData</code> function I get the error:</p>

<pre><code>Error: Uncaught TypeError: string is not a function
</code></pre>

<p>I'm absolutely clueless as to why this is giving me so much problems. Thanks in advance!</p>

<p>Thanks problem was me using $, I don't use jQuery often, only for when i need cross browser compatibility. Thanks for this, will mark Answered when timer is up</p>
