Select program via button
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
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