I have a question about kendo window. I have a input like this
<div id="windowForAssign"></div>
<div>
<p>Your name</p>
<input type="text" id="name" >
<button type="button" id="btnSend">Send</button>
</div>
And when I click on button, a window will pop-up. Here, I use Kendo window.
$('#btnSend').click(createAndShowPopup);
var kendoWindowAssign = $("#windowForAssign");
var title = "Sample title";
var url = "";
function createAndShowPopup(){
kendoWindowAssign.kendoWindow({
width: "650px",
modal: true,
height: '120px',
iframe: true,
resizable: false,
title: title,
content: null,
visible: false
});
var popup = $("#windowForAssign").data('kendoWindow');
popup.open();
popup.center();
}
But I don't know how to get data from input for content. Thank you for your help!
You can use the
contentmethod for this. From Telerik docs:Just pass in the input's value by using
popup.content($("#name").val());Dojo example here