diff --git a/html/services.js b/html/services.js
index b44ec88..17075ff 100644
--- a/html/services.js
+++ b/html/services.js
@@ -14,7 +14,7 @@ function changeServices(e) {
};
hideWarning();
- var n = e.srcElement.id.replace("-form", "");
+ var n = e.target.id.replace("-form", "");
var cb = $("#" + n + "-button");
addClass(cb, "pure-button-disabled");
ajaxSpin("POST", url, function (resp) {