title: Displaying a HTML select value in the same page
body: <p>Basically I just want to have a value set by a dropdown box and then echo the value next to it, ideally without a submit button and in the same page. </p>
  
  <pre><code>&lt;select name="price" action="post" id="mySelect"&gt;
  &lt;option value="100"&gt;Option 1&lt;/option&gt;
  &lt;option value="120"&gt;Option 2&lt;/option&gt;
  &lt;option value="115"&gt;Option 3&lt;/option&gt;
  &lt;option value="135"&gt;Option 4&lt;/option&gt;
  &lt;option value="80" &gt;Option 5&lt;/option&gt;
  &lt;/select&gt;
  
  echo "£ $price"
  </code></pre>
  
  <p>I've been looking for a while for a way to do this, most solutions echo the value into the select. I'm sure there's a much better way to do this so any links would be appreciated!</p>