I want to make a page with the answer, how?

On the website you need to select an option from the list and got value. How to do it? Assume that the html form with the select funtion
March 23rd 20 at 19:01
3 answers
March 23rd 20 at 19:03
Solution
<select id="sel" onchange="change()">
 <option value="1">one</option>
 <option value="2">two</option>
 <option value="3">..</option>
</select>

<div id="message"></div>

the <script>
 function change() {
 document.getElementById("message").innerHTML = document.getElementById("sel").value;
}
</script>
Sorry for my inexperience, but where to put the text? Well, for example, choose the address from the list, get the date of disconnection of hot water - stacy commented on March 23rd 20 at 19:06
@stacy,
And where you store the addresses and dates? - Estefani commented on March 23rd 20 at 19:09
Don't know ;) well, let's say inside the page - stacy commented on March 23rd 20 at 19:12
March 23rd 20 at 19:05
Solution
View, as an example https://jsfiddle.net/rhb2u37q/
thank you! - stacy commented on March 23rd 20 at 19:08
March 23rd 20 at 19:07
And after he presses Send as to the output values? - stacy commented on March 23rd 20 at 19:10
@stacy, what meaning? where is the value? - Leopoldo_Heathcote33 commented on March 23rd 20 at 19:13
Well, for example, choose the address from the list, get the date of disconnection of hot water - stacy commented on March 23rd 20 at 19:16

Find more questions by tags HTML