easyui 使特定tab处于选中状态

<div id="tabs" class="easyui-tabs">
    <div title="Tab1" style="padding:20px;">   
        tab1    
    </div>
</div>
/*code*/
<input type="button" />

JS代码:

<script type="text/javascript">
    $(functon(){
        $("button").click(function(){
            $('#tabs').tabs("select", "Tab1");//选中Tab1
}) })
</script>

 

posted on 2014-01-17 23:15  iackjee  阅读(1283)  评论(0编辑  收藏  举报

导航