Edit this page

container jQuery

Specifies the content element to shift when the drawer appears. Required if the drawer is used outside of a mobile application.

Drawer outside of a mobile application

<div id="drawer">
    <a href="#" data-target="baseball" class="drawer-link active">Baseball</a>
    <a href="#" data-target="golf" class="drawer-link">Golf</a>

<div id="content-container">
    <a id="drawer-trigger" href="#"><span>Show drawer</span></a>
    <div id="baseball" class="inner-content">
    <div id="golf" class="inner-content">

    $(function() {
            container: "#content-container"

        $("#drawer-trigger").click(function() {
            return false;

        $(".drawer-link").click(function() {
            return false;

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article