<style>
.version {
height: 25px;
width: 200px;
border-radius: 5px;
border: 1px solid #ddd;
}
</style>
<select class="version" id="version" onchange="showContent()">
<option value="16.0.0">6.0.0</option>
</select>
<script>
function showContent() {
var dropdown = document.getElementById("version");
var tabs = document.getElementsByClassName("rwui_tab_content");
for (var i = 0; i < tabs.length; i++) {
if (tabs[i].getAttribute("data-name") == dropdown.value) {
tabs[i].style.display = "";
}
else {
tabs[i].style.display = "none";
}
}
}
</script> |