如何在日期过滤器中分配todat日期 [英] How to assign todat date in date filter
问题描述
如何在日期过滤器中分配日期
我尝试过:
<!DOCTYPE html>
< html>
< head>
< script src =https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery。 min.js>< / script>
< script>
$(document).ready(function(){
var today =ffffffff;
alert(今天);
$(#a)。val(今天);
} );
< / script>
< / head>
< body>
姓名:< input id =atype =datename =user>
< button>设置输入字段的值< / button>
< / body>
< / html>
(文件).ready(function(){
var today =ffffffff;
警报(今天);
(#a)。val(今天);
});
< / script>
< / head> ;
< body>
姓名:< input id =atype =datename = user>
< button>设置输入字段的值< / button>
< / body>
< / html>
试试这个
how to assign todat date in date filter
What I have tried:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
var today="ffffffff";
alert(today);
$("#a").val(today);
});
</script>
</head>
<body>
Name: <input id="a" type="date" name="user">
<button>Set the value of the input field</button>
</body>
</html>
(document).ready(function(){
var today="ffffffff";
alert(today);
("#a").val(today);
});
</script>
</head>
<body>
Name: <input id="a" type="date" name="user">
<button>Set the value of the input field</button>
</body>
</html>
try this
这篇关于如何在日期过滤器中分配todat日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!