Simplifying jQuery addClass and removeClass to show what's selected
<p>I made a simple script that tells you what's selected using jQuery remove class and add class but it seems to be way too much coding.</p>

<p>Here is the fiddle: <a href="http://jsfiddle.net/Wz7Dv/" rel="nofollow">http://jsfiddle.net/Wz7Dv/</a></p>

<p>and here is the code:</p>

<pre><code>$(".panel_nav li.kset").click(function(){
        $('.panel_nav li.gset,.panel_nav li.kset,.panel_nav li.rset,.panel_nav li.dset').removeClass('selected');
        $(this).addClass('selected');
    });
    $(".panel_nav li.gset").click(function(){
        $('.panel_nav li.gset,.panel_nav li.kset,.panel_nav li.rset,.panel_nav li.dset').removeClass('selected');
        $(this).addClass('selected');
    });

    $(".panel_nav li.rset").click(function(){
        $('.panel_nav li.gset,.panel_nav li.kset,.panel_nav li.rset,.panel_nav li.dset').removeClass('selected');
        $(this).addClass('selected');
    });
    $(".panel_nav li.dset").click(function(){
        $('.panel_nav li.gset,.panel_nav li.kset,.panel_nav li.rset,.panel_nav li.dset').removeClass('selected');
        $(this).addClass('selected');
    });
</code></pre>

<p>Is there a way to strip it down?</p>

<p>Thank you</p>
