//I created the script at the bottom of the body to change select dropdown based on currently selected mainheading value. //old method tried to use scriptlets mixed with javascript, but it's easier to do this with javascript. const urlParams = new URLSearchParams(window.location.search); const myParam = urlParams.get('mainHeading'); //if mainHeading parameter is null or equal to Operations show Operations dropdown if(myParam === ' Operations' || myParam === null) { document.getElementById('mainHeading').value = ' Operations'; }else{ document.getElementById('mainHeading').value = ' Future Plans'; }
var urlParams = new URLSearchParams(window.location.search); var myParam = urlParams.get('mainHeading'); //if mainHeading parameter is null or equal to Operations show Operations dropdown if(myParam ==='Future Plans'){ document.getElementById('mainHeading').value = 'Future Plans'; }else{ document.getElementById('mainHeading').value = 'Operations';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)