我一直在尝试通过 FF 14 上的 mootools (1.4.5) 提交表单。该表单不包含名为 submit 的输入(这通常是问题所在)。我想要的是 onchange 选择提交表单。半小时后,下面的代码是我第一次尝试让它工作。objSelect 是一个选择对象,包含在我需要提交的表单中。
$(''+objSelect.getParent('form').get('id')).submit();
.
下面的代码不能正常工作的原因是什么?
// Without the explicit cast to string (''+); doesn't work
$(objSelect.getParent('form').get('id')).submit();
也不
// Most obvious way; doesn't work
objSelect.getParent('form').submit();