summaryrefslogtreecommitdiff
path: root/src/scripts/focus_element_by_id.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/focus_element_by_id.js')
-rw-r--r--src/scripts/focus_element_by_id.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripts/focus_element_by_id.js b/src/scripts/focus_element_by_id.js
new file mode 100644
index 0000000..309a8a4
--- /dev/null
+++ b/src/scripts/focus_element_by_id.js
@@ -0,0 +1,2 @@
+document.getElementById("%s").disabled=false;
+document.getElementById("%s").focus()