浏览代码

Fixed wrongly-generated IDs

父节点
当前提交
ca311c575c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js 查看文件

167
 // return: a block containing the field and a label describing it (if enabled)
167
 // return: a block containing the field and a label describing it (if enabled)
168
 function getField(fieldInfos) {
168
 function getField(fieldInfos) {
169
 	var block = document.createElement('div');
169
 	var block = document.createElement('div');
170
-	block.setAttribute('id', fieldInfos.name);
170
+	block.setAttribute('id', 'form_' + fieldInfos.name);
171
 
171
 
172
 	// Declare the variable first
172
 	// Declare the variable first
173
 	let field = {};
173
 	let field = {};