search

Home  >  Q&A  >  body text

php+jquery problem

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

PHP中文网PHP中文网2777 days ago511

reply all(3)I'll reply

  • PHPz

    PHPz2017-05-17 09:57:28

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

    reply
    0
  • 某草草

    某草草2017-05-17 09:57:28

    For thisinput加一个id,比如<input type="date" id="id_date">,获取值就直接这样获取$('#id_date').val();

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-17 09:57:28

    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

    reply
    0
  • Cancelreply