And an editable paragraph
This demo shows a simple custom widget built using the widget factory (jquery.ui.widget.js).
The header is set to change the element on blur, the paragraph only changes when you submit with Enter.
For more details on the widget factory, visit the jQuery UI planning wiki.