Hello Im trying to display the result but when I click any of the options on the dropdow, I just dont get anything, what Im doing wrong? Thanks
CODEPEN
html
<select id="bedrooms" onchange="changeddl(this)">
<option>Choose beds</option>
<option value="150">1 bed</option>
<option value="200">2 beds</option>
<option value="300">3 beds</option>
<option value="400">4 beds</option>
</select>
<div id="divprice"></div>
js
function changeddl(this) {
document.getElementById("divprice").text(this.value > 0?("price: $ " + this.value):"");
};