How to tab between divs? I’m trying to tab between divs to use as a selection option of panels. When tabbed on a particular div panel, its border should be become active. Its not working and only tab at the browser level. Here’s what I’m tried so far..
<script type="text/javascript">
$(document).ready(function()
{
$("div").keydown(function(e)
{
if (e.which == 9)
{
$(this).css("border","4px solid gray");
}
});
});
</script>
<div id="north"></div>
<div id="west"></div>
<div id="center"></div>
I suppose you could do something like this:
Demo. (make sure to click on the rendered page area beforehand)