<input type="date">How to get this value using jquery?
认证高级PHP讲师
$('input[type=date]').val()
For thisinput加一个id,比如<input type="date" id="id_date">,获取值就直接这样获取$('#id_date').val();
input
id
<input type="date" id="id_date">
$('#id_date').val();
If you use the above type to get it, if there are multiple ones, you will get multiple ones at the same time. If you want to specify a certain one, use id
$('input[type=date]').val()
For this
input
加一个id
,比如<input type="date" id="id_date">
,获取值就直接这样获取$('#id_date').val();
If you use the above type to get it, if there are multiple ones, you will get multiple ones at the same time. If you want to specify a certain one, use id