Select program via button

SupportSelect program via button
Jaro asked 2 years ago
Hi, is there any way how to select a program via link? I tried to make simple script to select a program from a dropdown via button link, but when I try to complete the reservation I am getting \"error unknown\".   Here is my code:  <script>
function selectElement(name, valueToSelect) {
let element = document.querySelector(\"#rezervation > div > div > div > div > form > div:nth-child(2) > div.col-sm-8 > select\")
element.value = valueToSelect;
let myCalendar= document.querySelector(\"#rezervation > div > div > div > div > form > div.step.calendar\")
myCalendar.classList.remove(\"disabled\");
}
</script>   Is there any way to do it? Thank you! Jaro
1 Answers
Nikola Loncar Staff answered 1 year ago
Hi Jaro, what exactly you want to select? Best regards, Nikola