Getting value from JQUERY datepicker

前端 未结 10 1910
故里飘歌
故里飘歌 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:52

    You could remove the name attribute of this input, so it won't be submited.

    To access the value of this controll:

    $("div#someID").datepicker( "getDate" )
    

    and your may have a look at the document in http://jqueryui.com/demos/datepicker/

提交回复
热议问题