10 lines
364 B
JavaScript
10 lines
364 B
JavaScript
var landField = document.getElementById("lahan-field");
|
|
var landVal = new Choices(landField);
|
|
|
|
function showInfo(selectEl, id) {
|
|
const infoElement = document.getElementById(id + "-info");
|
|
const selectedOption = selectEl.selectedOptions[0];
|
|
const description = selectedOption.getAttribute("data-desc");
|
|
infoElement.innerText = description || "-";
|
|
}
|