Getting value from JQUERY datepicker

前端 未结 10 1913
故里飘歌
故里飘歌 2020-11-29 07:56

If I want to display the JQUERY UI datepicker inline by attaching it to a DIV like $(\"div#someID\").datepicker() - how do I access the chosen date? I assume if

10条回答
  •  感情败类
    2020-11-29 08:59

    To position the datepicker next to the input field you could use following code.

    $('#datepicker').datepicker({
        beforeShow: function(input, inst)
        {
            inst.dpDiv.css({marginLeft: input.offsetWidth + 'px'});
        }
    });
    

提交回复
热议问题