SAE_web/scripts/redirectToSelected.js
2024-06-15 00:51:32 +02:00

14 lines
539 B
JavaScript

function redirectToSelectedDate() {
var selectedDate = document.getElementById("eventDate").value;
window.location.href = "/events/list/display?date=" + selectedDate;
}
function redirectToSelectedLocation() {
var selectedLocation = document.getElementById("location").value;
window.location.href = "/events/list/display?location=" + selectedLocation;
}
function redirectToSelectedTitle() {
var selectedTitle = document.getElementById("eventName").value;
window.location.href = "/events/list/display?title=" + selectedTitle;
}