I have a function using jQuery
function enableField(fieldID) {
$("#" + fieldID).removeAttr('disabled').focus().select();
}
that is called from the following code inside an HTML page
<input id="phone_nr" name="phone"
type="text" size="30" value="12345"/>
<a href="javascript:void(0);"
onclick="enableField('phone_nr'); return false;">Change</a>
The input field is disabled initially. So the call to the JS method enables it again, then puts the focus on the field and selects the text inside for editing.
Internet explorer (9) doesn't do this properly (all the other browsers do). On clicking the "change" link, nothing seems to happen.