Is there a way to display different text based on selection from a dropdown menu without using javascript?
I attempted the code below, but it still relies on the onchange event.
<div>
<select onchange="if(selectedIndex!=0)document.getElementById('t').innerHTML=options[selectedIndex].value;">
<option value="">< select an option ></option>
<option value="term 1">term 1</option>
<option value="term 2">term 2</option>
<option value="term 3">term 3</option>
</select>
</div>
<div id="t"></div>
I am seeking assistance in achieving the same functionality without relying on javascript. Your help is greatly appreciated.
Thank you