mirror of
https://github.com/s00500/ESPUI.git
synced 2025-07-04 11:20:19 +00:00
Preselect the right option in the select-input
This commit is contained in:
2
data/js/controls.js
vendored
2
data/js/controls.js
vendored
@ -512,7 +512,7 @@ function start() {
|
||||
if(data.parentControl) {
|
||||
var element = $("#select"+data.parentControl);
|
||||
element.append(
|
||||
"<option id='option" + data.id + "' value='" + data.value + "'>" + data.label + "</option>"
|
||||
"<option id='option" + data.id + "' value='" + data.value + "' " + data.selected + ">" + data.label + "</option>"
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user