1、前台代码:

<asp:TextBox ID="TextBox1" runat="server" onfocus="return show();" ReadOnly="true" ></asp:TextBox><asp:Calendar ID="Calendar1" runat="server" OnSelectionChanged="Calendar1_SelectionChanged" Style="display:none;"></asp:Calendar>
        <script type="text/javascript">
            function show() {
                document.getElementById("<%= Calendar1.ClientID%>").style.display = "block";
                return false;
            }
        </script>
View Code

相关文章:

  • 2022-01-31
  • 2021-11-07
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案