html - mvc html如何创建datetimepicker怎么做
问题描述
我想在我的 mvc 应用程序中创建一个 datetimepicker usgin html 我有下面的控件
<div class="col-md-3">
@Html.TextBox(model => model.Trip_Time, "{yyyy-MM-dd 12:00:00}", new { @class = "form-control", @readonly = true })
@Html.ValidationMessageFor(model => model.Trip_Time)
</div>
jquery代码是
$("#Trip_Time").datetimepicker({
showOn: "button",
showSecond: true,
dateFormat: "dd-mm-yy",
timeFormat: "HH:mm:ss",
});
问题是当我点击只读的文本框时没有显示
解决方案
推荐阅读
- python - 如何使用python从字符串中删除引用的单词/短语?
- javascript - OrientDB:如何检查服务器端函数中的查询结果是否为空?
- c# - 在现有 .NET Core MVC 项目中基于 URL 有条件地渲染 React 组件
- javascript - 使用变换缩放:矩阵():如何坚持左边缘(改变缩放中心)?
- java - Java TCP Ping IP 地址
- php - 如何将主键的值插入到插入查询中
- nativescript - 为什么模拟器和物理设备之间的 scollview 行为不同?
- .net - 403 禁止:您无权访问此资源。Apache/2.4.18 (Ubuntu) 服务器端口 443
- scala - Databricks scala 从数据帧字段中删除间歇性\n
- python - 熊猫日期时间转换问题