Posts Tagged ‘editInPlace’

jQuery ui datepicker + jQuery editInPlace

Thursday, September 17th, 2009

The goal of this post is to show how editInPlace plugin for jQuery can be used with the ui.jQuery.datepicker. Jacob Terry already made this very good but modifying Dave Hauenstein’s editInPlace plugin.

Before show you the snippet here is the key: Use two elements, one for each widget, the datepicker hidden but with the icon option, and to trigger click & blur events for the other in the onClose callback function of the datepicker.

There’s still an important (but I think not hard) TODO: Update the datepicker value when the editInPlace widget is edited by hand. Anyone can contribute?