I have an website with URL`s like example.com/index.php?p=home An this script
$(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;
    });
});
And and html width divs that contain the pages class like
<div id="tab1" class="tab_content p=home">
Can I have an script that will remove the = sign from the path name variable and from the classes of div`s?
Thank you!
 
     
     
     
    