php+jquery problem
PHP中文网
PHP中文网 2017-05-17 09:55:28
0
3
449

<input type="date">
How to get this value using jquery?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
PHPzhong

$('input[type=date]').val()

某草草

For thisinput加一个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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template