Jquery: Passing Variable (Get)
<p>I need to pass the variable category as GET, that is, i want in the url ?category=category but i don't know why it doesn't appear! </p>

<pre><code>$(document).ready(function(e) {
    $("#sidebar li").click(function(e) {
        var category = $(this).html();
        $.ajax({
            type: 'GET',
            url: '/',
            data: {
                category: category
            },
            success: function(data) {}
        });
    });
});​
</code></pre>

<p>Thanks</p>

<p>EDIT: I need to pass the variable in the same page where I am: index.php</p>
