1
addForm用作表單ID,但表單提交在firefox中不起作用。document.addForm.submit()在Firefox中不工作
$(function() {
var date = $("#todo_due").val();
var text = $("#todo_due").val();
if (date && text) {
document.addForm.submit();
} else if (!date && !text) {
new Messi('{$LANG.main.todo_validation}', {ldelim}title: '{$LANG.error.error}', titleClass: 'info', modal: true{rdelim});
} else if (!text) {
new Messi('{$LANG.main.todo_validation_desc}', {ldelim}title: '{$LANG.error.error}', titleClass: 'info', modal: true{rdelim});
} else {
new Messi('{$LANG.main.todo_validation_date}', {ldelim}title: '{$LANG.error.error}', titleClass: 'info', modal: true{rdelim});
}
});
該表單必須針對addform id提交... – user1847416