<script>
        $(document).ready(function(){
            $('[data-toggle="popover"]').popover();
            $("#Show").click(function(){
                $("#Div").show("slow");
                $("#Show").hide();
                $("#Hide").show();
            });
            $("#Hide").click(function(){
                $("#Div").hide("slow");
                $("#Hide").hide();
                $("#Show").show();
            });
        });
</script>

 

<button type="button" class="btn btn-default" id="Show">瀏覽</button>
<button type="button" class="btn btn-default" id="Hide" style="display:none;">隱藏</button>
 

<div id="advisoryInfDiv" style="display:none;"><br/>
     <span>內容</span>
</div>

arrow
arrow
    文章標籤
    jQuery hide() show()
    全站熱搜

    kkkelu1008 發表在 痞客邦 留言(0) 人氣()