easyui Datagrid вкладки

// you can use this code   
// Example HTML
<a href="javascript:void(0);" onclick="addTab('Your Profile','http://localhost/youproject/profile')">Profile</a>

<script>
function addTab(nmMenu, url) {
            index++;
            if ($('#tt').tabs('exists', nmMenu)) {
                $('#tt').tabs('select', nmMenu);
            } else {
                $('#tt').tabs('add', {
                    title: nmMenu,
                    href: url,
                    closable: true
                });
            }
   }

</script>
Satriags