Passing TextBox value from jquery dialog to variable in a function
<p>I have the following files:</p>

<p>FILE1.ASPX</p>

<pre><code>function DDialog(url, title, height, width) {
    HideDialogs();
    var dialogButtons = [{
        text: "Save",
        click: function () {

    var data = {};
    data.HolidayDate = $('#txtHireDate').val();
    alert(data.HolidayDate);

    var jsondata = $.toJSON(data);

    ajaxManager.add({
        type: "POST",
        url: "ChangeHireDate.aspx/DoIt",
        data: jsondata,
        contentType: "application/json; charset=utf-8",
        dataType: "text json",
        beforeSend: function (xhr) {
            xhr.setRequestHeader("Content-type",
                         "application/json; charset=utf-8");
        },
        success: function (msg) {
            alert("WORKS");
        },
       /* error: function (XMLHttpRequest, textStatus, errorThrown) {
            alert("Could not save holiday.");
        }*/
        error: function (xmlRequest) {
                    alert(xmlRequest.status + ' \n\r ' + xmlRequest.statusText + '\n\r' + xmlRequest.responseText);
        }
    });
...
</code></pre>

<p>FILE2.ASPX (dialog window)
TextField gets date from calendar extender</p>

<p>Problem is I dont know how to pass the date from the textfield to the data.HolidayDate when the button is clicked.</p>
