We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b377885 commit 9beed9cCopy full SHA for 9beed9c
1 file changed
js/src/qgrid.editors.js
@@ -63,11 +63,17 @@ class SelectEditor {
63
}
64
65
var option_str = "";
66
+
67
+ this.elem = $("<SELECT tabIndex='0' class='editor-select'>");
68
69
for (var i in this.options) {
70
var opt = $.trim(this.options[i]); // remove any white space including spaces after comma
- option_str += "<OPTION value='" + opt + "'>" + opt + "</OPTION>";
71
+ var opt_elem = $("<OPTION>");
72
+ opt_elem.val(opt);
73
+ opt_elem.text(opt);
74
+ opt_elem.appendTo(this.elem);
75
- this.elem = $("<SELECT tabIndex='0' class='editor-select'>" + option_str + "</SELECT>");
76
77
this.elem.appendTo(args.container);
78
this.elem.focus();
79
0 commit comments