title: How to use a dropdown value as a if function
body: <p>i have a html code as following</p>
  
  <p>tfa_78 is a dropdown list, but build in formassembly, so not able to put it in the code
  the value "Test" is just to show myself, that the code in general is running ;)</p>
  
  <pre><code>&lt;script&gt;     
  
  var tfa78 = document.getElementById("tfa_78").selvalue;
  
  if( tfa78 == "karte" )
  {
  document.getElementById('tfa_2448').innerHTML ='&lt;b&gt;Bei karte anrufen.&lt;/b&gt; &lt;br&gt;';
  } else {
  document.getElementById('tfa_2448').innerHTML ='Test';
  }
  </code></pre>
  
  <p>
  <br></p>
  
  <p>my question: it is not working, i do not get the first result, what might be wrong? is the selvalue the right thing to select the dropdown value? before, i used this code with a textfield, that was working, so i guess it is anyhow related to the wrong "get" value argument?</p>
  
  <p>Thanks a lot in advance for your support.</p>
  
  <p>I updated my code already due to few comments as below: </p>
  
  <pre><code> &lt;script&gt;     
   var tfa78 = document.getElementById("tfa_78").value;
   if( tfa78 == 'tfa_2438' ) {
   document.getElementById('tfa_2448').innerHTML ='&lt;b&gt; anrufen.&lt;/b&gt; &lt;br&gt;';
   }else {
   document.getElementById('tfa_2448').innerHTML ='Test'+ tfa78;
   }&lt;/script&gt;
  </code></pre>
  
  <p>and this is the dropdown code, but i can not change that.</p>
  
  <pre><code>&lt;select id="tfa_78" name="tfa_78" title="Quelle?" class="required"&gt;&lt;option 
  value=""&gt;Bitte auswählen:&lt;/option&gt;
  &lt;option value="tfa_2438" id="tfa_2438" data-conditionals="#tfa_93" 
  class=""&gt;karte&lt;/option&gt;
  &lt;option value="tfa_2437" id="tfa_2437" data-conditionals="#tfa_93" 
  class=""&gt;Test&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>