I want to adjust the video quality according to the dimensions when given a certain value
<input id="age" value="500" />
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var age,en, voteable;
age = document.getElementById("age").value;
voteable = (720 > age < 1080 ) ? "SD":"HD":"FHD";
document.getElementById("demo").innerHTML = " Quality:" + voteable ;
}
</script>
try this!