diff --git a/mod/lams/mod.html b/mod/lams/mod.html
index 4527579f6c92a..8540d10ddd368 100644
--- a/mod/lams/mod.html
+++ b/mod/lams/mod.html
@@ -229,7 +229,7 @@
dol = new DynamicOptionList("workspace","sequence");
dol.setFormName("form");
- url = "../mod/lams/list.php?courseid="+getElementById('form').course.value;
+ url = "../mod/lams/list.php?courseid="+document.getElementById('form').course.value;
if (window.XMLHttpRequest) { // Non-IE browsers
req = new XMLHttpRequest();
req.onreadystatechange = processStateChange;