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

Example

<div data-role="view" id="myView">
    <a data-role="button" data-click="getContentElement">Tap here</a>
</div>

<script>
function getContentElement() {
    var view = $("#myView").data("kendoMobileView");
    console.log(view.contentElement());
}

new kendo.mobile.Application();
</script>
In this article
Not finding the help you need? Improve this article