如何使用 dynDateTime 从文本框中获取文本

how to get text from textbox with dynDateTime

本文关键字:获取 取文本 文本 何使用 dynDateTime      更新时间:2023-09-26

我仍然不明白为什么我不能从文本框中获取文本。

我需要 dynDateTime 将日期获取到文本框,但是在我选择日期并且日期出现在文本框中后,我无法从文本框中获取文本。

<script type="text/javascript">
        $(document).ready(function () {
            $("#<%=TextBox1.ClientID %>").dynDateTime({
                showsTime: false,
                ifFormat: "%Y/%m/%d",
                daFormat: "%l;%M %p, %e %m,  %Y",
                align: "BR",
                electric: false,
                singleClick: false,
                displayArea: ".siblings('.dtcDisplayArea')",
                button: ".next()"
            });
        });
    </script>
<asp:TextBox ID="TextBox1" runat="server" ReadOnly = "true" Width="100px"></asp:TextBox><img src="../../images/calendar_icon.png" />

我错过了什么?

提前谢谢。

显然,问题只是 ReadOnly = "true"。

删除它们,我可以从文本框中获取文本。

傻我..

感谢您的阅读..

:D