Jeditable with jQuery UI Datepicker

前端 未结 5 806
借酒劲吻你
借酒劲吻你 2020-12-31 15:50

I need to have a click to edit element on a page, that will in turn invoke an instance of the jQuery UI Datepicker.

Currently, I\'m using JEditable to provide the i

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 16:29

    I had the same problem. Searching inside the sourcecode of http://www.appelsiini.net/projects/jeditable/custom.html brought me to the solution.

    There is a "jquery.jeditable.datepicker.js". Putted this in my code an added a new function "datepicker" (also in the source).

    I don't know how your script works but in my case the function additionally needs:

    id : 'elementid',

    name : 'edit'

    to store the data in the database.

    hth :)

    dabbeljuh

提交回复
热议问题