You can do this- Set the field to readOnly by setting value of readOnly=true Then, bind action of $("#field").dbclick(function(){ set readOnly to false }); and then change it. See if your purpose is met.
- [jQuery] Adding a double click event to a form element Devin
- [jQuery] Re: Adding a double click event to a form element aimhier