search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Display partials or some part of (current) document

Related article: DayPilot.Modal Dialog
Asked by Ellie
8 years ago.

How to display #someContentDiv (section somewhere separate on the page, but hidden for extended-tooltip-like display purposes), as long as it possible?
Thanx

Answer posted by Dan Letecky [DayPilot]
8 years ago.

It's possible to display custom HTML using .showHtml() method.

You can get the inner HTML of a certain element using innerHTML:

var html = document.getElementById("someContentDiv").innerHTML;
new DayPilot.Modal().showHtml(html);
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.