how to get click or tab select a panel?
<p>how to get a click or a tab to select either north, west, or center panel?
This is tab code works but don't know how to integrate it with a click-panel code</p>

<p><strong>JAVASCRIPT :</strong></p>

<pre><code>$(document).ready(function(){
    var divs = ["north", "west", "center"];
    var startIndex = 0;
    $(document).keydown(function(e) {
        if (e.which == 9) {
            $("div").css("border", "");
            $("#" + divs[startIndex]).css("border", "4px solid gray");
            if(divs[startIndex] == "north"){
                alert("north");
            }else if(divs[startIndex] == "west"){
                alert("west");
            }else{
                alert("center");
            }

            startIndex++;

            if(startIndex === divs.length) {
                startIndex = 0;
            }                   
        }
        return false;
    });
});
</code></pre>

<p><strong>HTML :</strong></p>

<pre><code>&lt;div id="north"&gt;&lt;textarea&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div id="west"&gt;&lt;textarea&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div id="center"&gt;&lt;textarea&gt;&lt;/textarea&gt;&lt;/div&gt;    
</code></pre>
