Revision: 17374
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 2, 2009 12:49 by cyberhobo
Initial Code
var my_textbox = document.getElementById( 'my_textbox' ); my_textbox.blur(); my_textbox.disabled = true; // later... my_textbox.disabled = false; my_textbox.focus();
Initial URL
Initial Description
I just noticed in Firefox 3.5.2 that setting `disabled = true` for a focused text input seems to make it impossible to re-focus after setting `disabled = false`. The solution is to blur it before disabling.
Initial Title
Disable and enable a text input in Firefox
Initial Tags
DOM, text
Initial Language
JavaScript