I\'ve a textbox with readonly=\"readonly\" that means I can not edit it. But what I want is to make this textbox editable when user double clicks on it.
readonly=\"readonly\"
Wha
Update:
To make it readonly again:
var el = document.getElementById('txt'); el.onblur = function(){ this.setAttribute('readonly'); };
You can do this:
JS:
var el = document.getElementById('txt'); el.ondblclick = function(){ this.removeAttribute('readonly'); };