我可以更改主意消息吗? [英] Can I change mindate message?
本文介绍了我可以更改主意消息吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将最小日期消息从请选择一个不早于2018-10-02的值"更改为请选择一个不早于2018年10月2日的值".br>
可以更改该消息的日期格式吗?
I am trying to change the min date message from "please select a value that is not earlier than 2018-10-02" to something like "please select a value that is not earlier than 02-10-2018".
Is it possible to change the date format of that message?
我的代码:
<input style="font-family: Arial;"
class="date_input"
type="date"
id="dates" name="dates"
min="<?php echo $today;?>"
value="<?php echo $today;?>" />
推荐答案
您可以使用 无效的
:
You can use oninvalid
:
<input style="font-family: Arial;"
class="date_input"
oninvalid="setCustomValidity('Some message about minimum date')
type="date"
id="dates" name="dates"
min="<?php echo $today;?>"
value="<?php echo $today;?>" />
这篇关于我可以更改主意消息吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文