diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 7ad26f99dd5..82697c331a2 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4995,7 +4995,10 @@ class Form
else {
$(\'.'.$htmlname.'\').val( $(\'.'.$htmlname.'\').val().replace(title, \'\') )
}
- });
+ // Now, we submit page
+ $(this).parents(\'form:first\').submit();
+ });
+
';