Jquery - Change an class with "=" in it
<p>I have an website with URL`s like example.com/index.php?p=home
An this script</p>

<pre><code>$(document).ready(function() {

    var pathname = jQuery.url.attr("query");
    $('.tab_container').append(' .'+ pathname +' ');

    //Default Action
    $(".tab_content").hide(); //Hide all content
    $(' .'+ pathname +' ').show();

    //On Click Event
    $("#sidebar-menu a").click(function() {
        $("#sidebar-menu a").removeClass("active"); //Remove any "active" class
        $(this).addClass("active"); //Add "active" class to selected tab
        $(".tab_content").hide(); //Hide all tab content
        var activeTab = $(this).attr("href"); //Find the rel attribute value to identify the active tab + content
        $(activeTab).fadeIn(); //Fade in the active content
        return false;
    });

});
</code></pre>

<p>And and html width divs that contain the pages class like</p>

<pre><code>&lt;div id="tab1" class="tab_content p=home"&gt;
</code></pre>

<p>Can I have an script that will remove the = sign from the path name variable and from the classes of div`s?</p>

<p>Thank you!</p>
