The solution is here: http://jsfiddle.net/kralco626/E9XVr/53/
Note. I think this is a duplicate of this question: how to show a text area when a button is clicked? However, the OP of this question has never been implemented, and I don’t think that any of the answers really answers the question. I think Tomalak commented on this question
It seems to me that he wanted to pop up in a text field, wait for input into it, click the "OK" button, and then save the result in a variable.
Pretty much sums it up.
When the user clicks the button, I would like to open a text area in which the user can enter some text, click the "OK" button, and then the text area closes.
I don’t need a dialog box, it’s too intrusive, I just want to open a simple text area or the like so that the upper left part of the text area is located in the lower left corner of the button.
Thank!
<span style="width:20px;height:20px" class="remarkButton"></span>
$(".remarkButton").button({ icons: { primary: "ui-icon-pencil" }, text: false }).click(function () {
$(...something to show text area...).data("$clickedButton",$(this));
});
function saveRemark($referenceToTextArea)
{
$referenceToTextArea.data("$clickedButton").data("remark",$referenceToTextArea.text());
}

source
share