Combine inline jquery datepicker with an input field?

前端 未结 2 1466
花落未央
花落未央 2021-02-13 15:46

I know that I can use $(\'div\').datepicker() to get an inline datepicker, but how do I show the datepicker fixed inline underneath its input field?

2条回答
  •  心在旅途
    2021-02-13 16:45

    It's not possible to get the datepicker inline just by using the input field . You need to use a div along with an input to get what you want.

    NOTE: Any changes made in the input will reflect in the datepicker

    Example Code

    
    

    Check out this jsfiddle I've created for you: http://jsfiddle.net/v9XCP/

提交回复
热议问题