contentElement

Retrieves the current content holder of the View - this is the content element if the View is stretched or the scroll container otherwise.

Important: Use this method to get a reference container in order to remove or append contents to the View

    <div data-role="view" id="myView">
        Tap here
    </div>


    <script>
    function getContentElement() {
        var view = $("#myView").data("kendoMobileView");
    /* The result can be observed in the DevTools(F12) console of the browser. */
        console.log(view.contentElement());
    }

    new kendo.mobile.Application();
    </script>
In this article