要素を動的に作成していますが、これに ID を与えるにはどうすればよいですか?
_addQuestionElement : function() {
var el = new Element('div');
el.addClass('dg-question-label');
el.set('html', this._getCurrentQuestion().label);
$(this.html.el).adopt(el);
},
mooツールとjqueryを使用しています。
どうもありがとう