I working on the time input type in HTML, my problem is when I click on the small clock icon on the right side of the input, the selectable time menu is viewed but I need to show it when I click anywhere on input.
我发现了这个问题,但这并不能解决我的问题,因为它与 Timepacker 有关,而不仅仅是 HTML。
单击整个输入类型时间 HTML5 字段不仅在小时钟图标上显示时间选择器 https://stackoverflow.com/questions/62810068/show-timepicker-on-click-whole-input-type-time-html5-field-not-only-on-little-cl
HTML :
<label for="first" class="">{{__('From Hour')}}</label>
<input type="time" class="form-control input-md"name="" id="from_hour" value="">
对我来说,添加onfocus="this.showPicker()"
时间输入上的属性解决了问题。
source:
https://stackoverflow.com/a/72627382/10414071 https://stackoverflow.com/a/72627382/10414071
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)